FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SetterValue

    enum · ferroui-base · v0.5.0

    enum SetterValue
    

    The value of a Setter.

    View source

    Members

    Value

    Value(crate::BoxedValue)
    

    A plain value, which must hold exactly the value type of the setter's property.

    Source

    Binding

    Binding(std::rc::Rc<dyn IObservable<crate::BoxedValue>>)
    

    A source of values: the setter binds the property to it on every control the style is applied to.

    This is the seam for binding descriptions: a binding class will create its per-control source where this variant uses the same observable for every control.

    Source

    BindingBase

    BindingBase(std::rc::Rc<dyn BindingBase>)
    

    A binding description: the setter instantiates the binding on every control the style is applied to.

    Source

    Template

    Template(std::rc::Rc<dyn ITemplate>)
    

    A template: the setter sets the property to the object the template builds, building it lazily once per control.

    Source

    Trait implementations

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

    Availability

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