FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ViewRegistrationOptions

    struct · ferroui-reactiveui · v0.5.0

    struct ViewRegistrationOptions
    

    The options of a view registration: upstream's attributes of a view class, as data.

    View source

    Members

    contract

    contract: Option<super::ViewContract>
    

    The contract the view is registered under ([ViewContract("...")]); None for the default.

    Source

    single_instance

    single_instance: Option<super::SingleInstanceView>
    

    Whether the view is created once and reused ([SingleInstanceView]).

    Source

    exclude

    exclude: Option<super::ExcludeFromViewRegistration>
    

    Whether the view is left out of the dispatch ([ExcludeFromViewRegistration]).

    Source

    new

    fn new() -> Self
    

    No option: the default contract, a new view for each resolution.

    Source

    with_contract

    fn with_contract(self: Self, contract: ViewContract) -> Self
    

    The options with contract.

    Source

    with_single_instance

    fn with_single_instance(self: Self) -> Self
    

    The options with SingleInstanceView.

    Source

    with_exclude

    fn with_exclude(self: Self) -> Self
    

    The options with ExcludeFromViewRegistration.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq

    Availability

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