pub struct ViewModelProperties { /* private fields */ }
Implementations§
source§impl ViewModelProperties
impl ViewModelProperties
pub fn unbind_all(&mut self, id: &WidgetId)
pub fn remove(&mut self, id: &str)
pub fn clear(&mut self)
pub fn is_empty(&self) -> bool
pub fn has(&self, id: &str) -> bool
pub fn remove_empty_bindings(&mut self)
pub fn bindings( &mut self, id: impl ToString, ) -> Option<ValueWriteAccess<'_, ViewModelBindings>>
pub fn notifier(&mut self, id: impl ToString) -> ViewModelNotifier
pub fn consume_notification(&mut self) -> bool
pub fn consume_notified_common_root(&mut self) -> WidgetIdCommon
Trait Implementations§
source§impl Default for ViewModelProperties
impl Default for ViewModelProperties
source§fn default() -> ViewModelProperties
fn default() -> ViewModelProperties
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ViewModelProperties
impl RefUnwindSafe for ViewModelProperties
impl Send for ViewModelProperties
impl Sync for ViewModelProperties
impl Unpin for ViewModelProperties
impl UnwindSafe for ViewModelProperties
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