FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TemplateResult

    struct · ferroui-controls · v0.5.0

    struct TemplateResult<T>
    

    The result of building a template: the built object and the name scope its named parts were registered in.

    View source

    Members

    new

    fn new(result: T, name_scope: NameScopeRef) -> Self
    

    Source

    result

    fn result(self: &Self) -> &T
    

    The built object.

    Source

    name_scope

    fn name_scope(self: &Self) -> &NameScopeRef
    

    The name scope of the built object.

    Source

    deconstruct

    fn deconstruct(self: Self) -> (T, NameScopeRef)
    

    Splits the result into the built object and its name scope.

    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
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone

    Availability

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