pub struct ControlsDetails {
pub current_step: usize,
pub step_index: usize,
pub on_step_continue: Option<Listener>,
pub on_step_cancel: Option<Listener>,
}Expand description
All the information necessary to build a Stepper’s forward and backward controls for a
given step.
Used by Stepper::controls_builder.
Fields§
§current_step: usizeIndex that is active for the surrounding Stepper.
step_index: usizeIndex of the step for which these controls are being built.
on_step_continue: Option<Listener>The callback called when the ‘continue’ button is tapped.
on_step_cancel: Option<Listener>The callback called when the ‘cancel’ button is tapped.
Implementations§
Trait Implementations§
Source§impl Clone for ControlsDetails
impl Clone for ControlsDetails
Auto Trait Implementations§
impl !RefUnwindSafe for ControlsDetails
impl !Send for ControlsDetails
impl !Sync for ControlsDetails
impl !UnwindSafe for ControlsDetails
impl Forget for ControlsDetails
impl Freeze for ControlsDetails
impl Move for ControlsDetails
impl Unpin for ControlsDetails
impl UnsafeUnpin for ControlsDetailswhere
*const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
*const (): 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