FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ViewContract

    struct · ferroui-reactiveui · v0.5.0

    struct ViewContract
    

    The contract a view is registered under, so that one view model has a view per contract (ViewContractAttribute): an option of a view registration (ViewRegistrationOptions).

    Deviation (DEVIATIONS.md, ReactiveUI): upstream's attributes on a view class are read by the source generator that builds the view dispatch; here they are plain data given to ViewRegistrations.

    View source

    Members

    new

    fn new(contract: impl Into<String>) -> Self
    

    The contract contract (ViewContractAttribute(string)).

    Source

    contract

    fn contract(self: &Self) -> &str
    

    The contract to resolve the view under (Contract).

    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
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

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