pub struct ViewValue<T> { /* private fields */ }
Implementations§
Source§impl<T> ViewValue<T>
impl<T> ViewValue<T>
pub fn new(value: T) -> Self
pub fn with_notifier(self, notifier: ChangeNotifier) -> Self
pub fn bind_notifier(&mut self, notifier: ChangeNotifier)
pub fn unbind_notifier(&mut self)
pub fn bound_notifier(&self) -> Option<&ChangeNotifier>
pub fn widget_ref(&self) -> WidgetRef
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ViewValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for ViewValue<T>where
T: RefUnwindSafe,
impl<T> Send for ViewValue<T>where
T: Send,
impl<T> Sync for ViewValue<T>where
T: Sync,
impl<T> Unpin for ViewValue<T>where
T: Unpin,
impl<T> UnwindSafe for ViewValue<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