pub struct ViewModelValue<T> { /* private fields */ }
Implementations§
source§impl<T> ViewModelValue<T>
impl<T> ViewModelValue<T>
pub fn new(value: T, notifier: ViewModelNotifier) -> Self
pub fn consume(self) -> T
pub fn set_unique_notify(&mut self, value: T)where
T: PartialEq,
Trait Implementations§
source§impl<T> Deref for ViewModelValue<T>
impl<T> Deref for ViewModelValue<T>
source§impl<T> DerefMut for ViewModelValue<T>
impl<T> DerefMut for ViewModelValue<T>
source§impl<T> OptionsViewProxy for ViewModelValue<T>where
T: OptionsViewProxy,
impl<T> OptionsViewProxy for ViewModelValue<T>where
T: OptionsViewProxy,
source§impl<T> SliderViewProxy for ViewModelValue<T>where
T: SliderViewProxy,
impl<T> SliderViewProxy for ViewModelValue<T>where
T: SliderViewProxy,
Auto Trait Implementations§
impl<T> Freeze for ViewModelValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for ViewModelValue<T>where
T: RefUnwindSafe,
impl<T> Send for ViewModelValue<T>where
T: Send,
impl<T> Sync for ViewModelValue<T>where
T: Sync,
impl<T> Unpin for ViewModelValue<T>where
T: Unpin,
impl<T> UnwindSafe for ViewModelValue<T>where
T: UnwindSafe,
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