pub struct Step<C = Schema> { /* private fields */ }Expand description
One step of a Wizard block: a titled trigger and the fields it shows.
Implementations§
Source§impl<F> Step<Schema<F>>
impl<F> Step<Schema<F>>
Sourcepub fn visible_when(
self,
watched: &impl Watched<F>,
values: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn visible_when( self, watched: &impl Watched<F>, values: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Shows the block and every field it holds only while watched posts one of
values, as TextField::visible_when shows a
field.
Trait Implementations§
Auto Trait Implementations§
impl<C> Forget for Step<C>
impl<C> Freeze for Step<C>where
C: Freeze,
impl<C> Move for Step<C>
impl<C> RefUnwindSafe for Step<C>where
C: RefUnwindSafe,
impl<C> Send for Step<C>where
C: Send,
impl<C> Sync for Step<C>where
C: Sync,
impl<C> Unpin for Step<C>where
C: Unpin,
impl<C> UnsafeUnpin for Step<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Step<C>where
C: 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