pub struct TimeClockState { /* private fields */ }Implementations§
Source§impl TimeClockState
impl TimeClockState
pub fn new(hour: u8, minute: u8, is_24_hour: bool) -> Result<Self, &'static str>
pub fn hour(&self) -> u8
pub fn minute(&self) -> u8
pub fn is_24_hour(&self) -> bool
pub fn part(&self) -> DialPart
pub fn set_part(&mut self, part: DialPart)
pub fn set_24_hour(&mut self, value: bool)
pub fn set_input_hour( &mut self, value: u8, zero_based: bool, ) -> Result<bool, &'static str>
pub fn set_input_minute(&mut self, value: u8) -> Result<bool, &'static str>
pub fn set_period(&mut self, pm: bool) -> bool
Trait Implementations§
Source§impl Clone for TimeClockState
impl Clone for TimeClockState
Auto Trait Implementations§
impl Forget for TimeClockState
impl Freeze for TimeClockState
impl Move for TimeClockState
impl RefUnwindSafe for TimeClockState
impl Send for TimeClockState
impl Sync for TimeClockState
impl Unpin for TimeClockState
impl UnsafeUnpin for TimeClockState
impl UnwindSafe for TimeClockState
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