pub struct PatternSwitcherView<State: 'static, P: TransitionPattern + Clone + 'static> { /* private fields */ }Expand description
A keyed single-slot child-switch container. See the module docs.
Implementations§
Source§impl<State: 'static, P: TransitionPattern + Clone + 'static> PatternSwitcherView<State, P>
impl<State: 'static, P: TransitionPattern + Clone + 'static> PatternSwitcherView<State, P>
Trait Implementations§
Source§impl<State: 'static, P: TransitionPattern + Clone + 'static> View<State> for PatternSwitcherView<State, P>
impl<State: 'static, P: TransitionPattern + Clone + 'static> View<State> for PatternSwitcherView<State, P>
Source§type Element = PatternSwitcherWidget<P>
type Element = PatternSwitcherWidget<P>
The retained widget this view produces.
Source§fn build(&self, ctx: &mut BuildCtx<'_>) -> PatternSwitcherWidget<P>
fn build(&self, ctx: &mut BuildCtx<'_>) -> PatternSwitcherWidget<P>
Materialise a fresh widget for this view.
Source§fn rebuild(
&self,
prev: &Self,
element: &mut PatternSwitcherWidget<P>,
ctx: &mut BuildCtx<'_>,
) -> ChangeFlags
fn rebuild( &self, prev: &Self, element: &mut PatternSwitcherWidget<P>, 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, P> !RefUnwindSafe for PatternSwitcherView<State, P>
impl<State, P> !Send for PatternSwitcherView<State, P>
impl<State, P> !Sync for PatternSwitcherView<State, P>
impl<State, P> !UnwindSafe for PatternSwitcherView<State, P>
impl<State, P> Freeze for PatternSwitcherView<State, P>
impl<State, P> Unpin for PatternSwitcherView<State, P>
impl<State, P> UnsafeUnpin for PatternSwitcherView<State, P>
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.