FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FerroPropertyMetadata

    struct · ferroui-base · v0.5.0

    struct FerroPropertyMetadata
    

    Metadata common to all property kinds.

    View source

    Members

    new

    fn new(default_binding_mode: BindingMode, enable_data_validation: Option<bool>) -> Self
    

    Source

    default_binding_mode

    fn default_binding_mode(self: &Self) -> BindingMode
    

    The default binding mode for the property.

    Source

    enable_data_validation

    fn enable_data_validation(self: &Self) -> Option<bool>
    

    Whether the property is interested in data validation.

    Data validation is validation performed at the target of a binding, for example in a view model. To enable it on a binding, the property must also enable it here.

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

    Whether the metadata has been frozen.

    Source

    merge

    fn merge(self: &mut Self, base: &FerroPropertyMetadata)
    

    Merges unset members from the base metadata.

    Source

    freeze

    fn freeze(self: &mut Self)
    

    Makes the metadata read-only.

    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
    • Debug

    Availability

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