pub struct ViewModelCollectionView<'a> { /* private fields */ }
Implementations§
source§impl<'a> ViewModelCollectionView<'a>
impl<'a> ViewModelCollectionView<'a>
pub fn new(id: &'a WidgetId, collection: &'a mut ViewModelCollection) -> Self
pub fn id(&self) -> &WidgetId
pub fn collection(&'a self) -> &'a ViewModelCollection
pub fn collection_mut(&'a mut self) -> &'a mut ViewModelCollection
pub fn bindings( &mut self, view_model: &str, property: impl ToString, ) -> Option<ValueWriteAccess<'_, ViewModelBindings>>
pub fn view_model(&self, name: &str) -> Option<&ViewModel>
pub fn view_model_mut(&mut self, name: &str) -> Option<&mut ViewModel>
pub fn widget_register(&mut self, name: impl ToString, view_model: ViewModel)
pub fn widget_unregister(&mut self, name: &str) -> Option<ViewModel>
pub fn widget_bindings( &mut self, view_model: &str, property: impl ToString, ) -> Option<ValueWriteAccess<'_, ViewModelBindings>>
pub fn widget_view_model(&self, name: &str) -> Option<&ViewModel>
pub fn widget_view_model_mut(&mut self, name: &str) -> Option<&mut ViewModel>
pub fn hierarchy_view_model(&self, name: &str) -> Option<&ViewModel>
pub fn hierarchy_view_model_mut(&mut self, name: &str) -> Option<&mut ViewModel>
Auto Trait Implementations§
impl<'a> Freeze for ViewModelCollectionView<'a>
impl<'a> RefUnwindSafe for ViewModelCollectionView<'a>
impl<'a> Send for ViewModelCollectionView<'a>
impl<'a> Sync for ViewModelCollectionView<'a>
impl<'a> Unpin for ViewModelCollectionView<'a>
impl<'a> !UnwindSafe for ViewModelCollectionView<'a>
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