pub struct View<T: ViewState> { /* private fields */ }
Implementations§
Source§impl<T: ViewState> View<T>
impl<T: ViewState> View<T>
pub fn new(state: T) -> Selfwhere
T: 'static,
pub fn into_inner(self) -> Box<dyn ViewState>
pub fn as_dyn(&self) -> Option<ValueReadAccess<'_, dyn ViewState>>
pub fn as_dyn_mut(&mut self) -> Option<ValueWriteAccess<'_, dyn ViewState>>
pub fn read(&self) -> Option<ValueReadAccess<'_, T>>
pub fn write(&mut self) -> Option<ValueWriteAccess<'_, T>>
pub fn lazy(&self) -> LazyView<T>
pub fn component(&self) -> WidgetComponent
pub fn widget(&self) -> FnWidget
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for View<T>
impl<T> !RefUnwindSafe for View<T>
impl<T> Send for View<T>
impl<T> Sync for View<T>
impl<T> Unpin for View<T>
impl<T> !UnwindSafe for View<T>
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