FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ViewAssembly

    struct · ferroui-reactiveui-controls · v0.5.0

    struct ViewAssembly
    

    The types of an application that hold its views (an assembly scanned upstream).

    View source

    Members

    name

    name: &'static str
    

    The name of the assembly.

    Source

    new

    fn new(name: &'static str) -> Self
    

    An assembly without types.

    Source

    view

    fn view<VM: 'static, V: IViewForOf<VM> + 'static>(self: Self, contract: Option<&str>, activator: fn() -> Rc<V>) -> Self
    

    Adds the view type V of the view model type VM (a class that implements IViewFor<TViewModel>), registered under contract ([ViewContract("...")]; None for the default), and created by activator when the service locator has no V.

    Source

    other_type

    fn other_type<T: ?Sized + 'static>(self: Self, is_abstract: bool) -> Self
    

    Adds a type that is not a view (it does not implement IViewFor<TViewModel>), or an abstract one: the registrar skips it.

    Source

    types

    fn types(self: &Self) -> &[ViewAssemblyType]
    

    The types of the assembly (GetTypes()).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Debug
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.