pub struct Stopwatch<'a> { /* private fields */ }Expand description
A widget that displays elapsed time from a StopwatchState.
Implementations§
Source§impl<'a> Stopwatch<'a>
impl<'a> Stopwatch<'a>
Sourcepub fn format(self, format: StopwatchFormat) -> Self
pub fn format(self, format: StopwatchFormat) -> Self
Sets the display format.
Sourcepub fn running_style(self, style: Style) -> Self
pub fn running_style(self, style: Style) -> Self
Sets a style override used when the stopwatch is running.
Sourcepub fn stopped_style(self, style: Style) -> Self
pub fn stopped_style(self, style: Style) -> Self
Sets a style override used when the stopwatch is stopped.
Trait Implementations§
Source§impl StatefulWidget for Stopwatch<'_>
impl StatefulWidget for Stopwatch<'_>
Auto Trait Implementations§
impl<'a> Freeze for Stopwatch<'a>
impl<'a> RefUnwindSafe for Stopwatch<'a>
impl<'a> Send for Stopwatch<'a>
impl<'a> Sync for Stopwatch<'a>
impl<'a> Unpin for Stopwatch<'a>
impl<'a> UnwindSafe for Stopwatch<'a>
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