pub struct Show { /* private fields */ }Expand description
Renders then while when is true, otherwise the optional fallback.
Vue’s v-if / v-else. Either is any children: a view, or a tuple of
them, which take their places in the parent as if written there.
Switching branches disposes the old branch’s nodes and reactive state.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Show
impl !Send for Show
impl !Sync for Show
impl !UnwindSafe for Show
impl Forget for Show
impl Freeze for Show
impl Move for Show
impl Unpin for Show
impl UnsafeUnpin for Showwhere
*const RcInner<dyn Fn() -> bool> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn() -> bool>>: UnsafeUnpin,
*const RcInner<dyn Fn() -> Vec<AnyView>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn() -> Vec<AnyView>>>: 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