pub struct TimePickerState {
pub selected: usize,
pub overlay: OverlayState,
pub anchor: Rect,
pub list: ListState,
pub scrollbar: ScrollbarDragState,
pub step_minutes: u16,
}Expand description
Caller-owned state for Frame::time_picker and Frame::time_picker_with_options.
Fields§
§selected: usize§overlay: OverlayState§anchor: Rect§list: ListState§scrollbar: ScrollbarDragState§step_minutes: u16Implementations§
Source§impl TimePickerState
impl TimePickerState
pub fn slot_count(&self) -> usize
pub fn formatted_value(&self) -> String
pub fn formatted_value_24h(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Forget for TimePickerState
impl Freeze for TimePickerState
impl Move for TimePickerState
impl RefUnwindSafe for TimePickerState
impl Send for TimePickerStatewhere
RawVecInner: Send,
impl Sync for TimePickerStatewhere
RawVecInner: Sync,
impl Unpin for TimePickerState
impl UnsafeUnpin for TimePickerState
impl UnwindSafe for TimePickerStatewhere
RawVecInner: 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