StyledPropertyMetadata
struct · ferroui-base · v0.5.0
struct StyledPropertyMetadata<T>
Metadata for styled properties.
Members
new
fn new(default_value: Option<T>) -> Self
Creates metadata. A default_value of None inherits the default
value of the base metadata when merged.
with_default_binding_mode
fn with_default_binding_mode(self: Self, mode: BindingMode) -> Self
with_coerce
fn with_coerce(self: Self, coerce: impl Fn(&FerroObject, T) -> T + 'static) -> Self
with_enable_data_validation
fn with_enable_data_validation(self: Self, enable: bool) -> Self
default_value
fn default_value(self: &Self) -> &T
The default value of the property. Panics if the metadata has not been merged with a base that provides one.
coerce_value
fn coerce_value(self: &Self) -> Option<&CoerceValueCallback<T>>
The value coercion callback, if any.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDeref
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.