pub struct ShieldView<State: 'static> { /* private fields */ }Expand description
A declarative z-shield wrapper. See shield and the module docs.
Trait Implementations§
Source§impl<State: 'static> View<State> for ShieldView<State>
impl<State: 'static> View<State> for ShieldView<State>
Source§type Element = ShieldWidget
type Element = ShieldWidget
The retained widget this view produces.
Source§fn build(&self, ctx: &mut BuildCtx<'_>) -> ShieldWidget
fn build(&self, ctx: &mut BuildCtx<'_>) -> ShieldWidget
Materialise a fresh widget for this view.
Source§fn rebuild(
&self,
prev: &Self,
element: &mut ShieldWidget,
ctx: &mut BuildCtx<'_>,
) -> ChangeFlags
fn rebuild( &self, prev: &Self, element: &mut ShieldWidget, ctx: &mut BuildCtx<'_>, ) -> ChangeFlags
Reconcile
prev (the previous view of the same type) against the live
element, mutating it in place and reporting what changed.Auto Trait Implementations§
impl<State> !RefUnwindSafe for ShieldView<State>
impl<State> !Send for ShieldView<State>
impl<State> !Sync for ShieldView<State>
impl<State> !UnwindSafe for ShieldView<State>
impl<State> Freeze for ShieldView<State>
impl<State> Unpin for ShieldView<State>
impl<State> UnsafeUnpin for ShieldView<State>where
AnyView<State>: UnsafeUnpin,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.