Struct leptos::ShowPropsBuilder
source · pub struct ShowPropsBuilder<F, W, IV, TypedBuilderFields = ((), (), ())> { /* private fields */ }
Expand description
Builder for ShowProps
instances.
See ShowProps::builder()
for more info.
Implementations§
source§impl<F, W, IV, __when, __fallback> ShowPropsBuilder<F, W, IV, ((), __when, __fallback)>where
W: Fn() -> bool + 'static,
F: Fn(Scope) -> IV + 'static,
IV: IntoView,
impl<F, W, IV, __when, __fallback> ShowPropsBuilder<F, W, IV, ((), __when, __fallback)>where W: Fn() -> bool + 'static, F: Fn(Scope) -> IV + 'static, IV: IntoView,
source§impl<F, W, IV, __children, __fallback> ShowPropsBuilder<F, W, IV, (__children, (), __fallback)>where
W: Fn() -> bool + 'static,
F: Fn(Scope) -> IV + 'static,
IV: IntoView,
impl<F, W, IV, __children, __fallback> ShowPropsBuilder<F, W, IV, (__children, (), __fallback)>where W: Fn() -> bool + 'static, F: Fn(Scope) -> IV + 'static, IV: IntoView,
sourcepub fn when(
self,
when: W
) -> ShowPropsBuilder<F, W, IV, (__children, (W,), __fallback)>
pub fn when( self, when: W ) -> ShowPropsBuilder<F, W, IV, (__children, (W,), __fallback)>
when: [W
]
A closure that returns a bool that determines whether this thing runs
source§impl<F, W, IV, __children, __when> ShowPropsBuilder<F, W, IV, (__children, __when, ())>where
W: Fn() -> bool + 'static,
F: Fn(Scope) -> IV + 'static,
IV: IntoView,
impl<F, W, IV, __children, __when> ShowPropsBuilder<F, W, IV, (__children, __when, ())>where W: Fn() -> bool + 'static, F: Fn(Scope) -> IV + 'static, IV: IntoView,
sourcepub fn fallback(
self,
fallback: F
) -> ShowPropsBuilder<F, W, IV, (__children, __when, (F,))>
pub fn fallback( self, fallback: F ) -> ShowPropsBuilder<F, W, IV, (__children, __when, (F,))>
fallback: [F
]
A closure that returns what gets rendered if the when statement is false
Trait Implementations§
Auto Trait Implementations§
impl<F, W, IV, TypedBuilderFields> RefUnwindSafe for ShowPropsBuilder<F, W, IV, TypedBuilderFields>where F: RefUnwindSafe, IV: RefUnwindSafe, TypedBuilderFields: RefUnwindSafe, W: RefUnwindSafe,
impl<F, W, IV, TypedBuilderFields> Send for ShowPropsBuilder<F, W, IV, TypedBuilderFields>where F: Send, IV: Send, TypedBuilderFields: Send, W: Send,
impl<F, W, IV, TypedBuilderFields> Sync for ShowPropsBuilder<F, W, IV, TypedBuilderFields>where F: Sync, IV: Sync, TypedBuilderFields: Sync, W: Sync,
impl<F, W, IV, TypedBuilderFields> Unpin for ShowPropsBuilder<F, W, IV, TypedBuilderFields>where F: Unpin, IV: Unpin, TypedBuilderFields: Unpin, W: Unpin,
impl<F, W, IV, TypedBuilderFields> UnwindSafe for ShowPropsBuilder<F, W, IV, TypedBuilderFields>where F: UnwindSafe, IV: UnwindSafe, TypedBuilderFields: UnwindSafe, W: 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