pub struct FerroPropertyMetadata { /* private fields */ }Expand description
Metadata common to all property kinds.
Implementations§
Source§impl FerroPropertyMetadata
impl FerroPropertyMetadata
pub fn new( default_binding_mode: BindingMode, enable_data_validation: Option<bool>, ) -> Self
Sourcepub fn default_binding_mode(&self) -> BindingMode
pub fn default_binding_mode(&self) -> BindingMode
The default binding mode for the property.
Sourcepub fn enable_data_validation(&self) -> Option<bool>
pub fn enable_data_validation(&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.
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Whether the metadata has been frozen.
Sourcepub fn merge(&mut self, base: &FerroPropertyMetadata)
pub fn merge(&mut self, base: &FerroPropertyMetadata)
Merges unset members from the base metadata.
Trait Implementations§
Source§impl Clone for FerroPropertyMetadata
impl Clone for FerroPropertyMetadata
Auto Trait Implementations§
impl Freeze for FerroPropertyMetadata
impl RefUnwindSafe for FerroPropertyMetadata
impl Send for FerroPropertyMetadata
impl Sync for FerroPropertyMetadata
impl Unpin for FerroPropertyMetadata
impl UnsafeUnpin for FerroPropertyMetadata
impl UnwindSafe for FerroPropertyMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more