pub struct ExtendedTime { /* private fields */ }Implementations§
Source§impl ExtendedTime
impl ExtendedTime
pub fn new(hour: u8, minute: u8) -> Self
pub fn hour(self) -> u8
pub fn minute(self) -> u8
pub fn add_minutes(self, minutes: i16) -> Result<Self, TryFromIntError>
pub fn add_hours(self, hours: i16) -> Result<Self, TryFromIntError>
pub fn from_mins_from_midnight(minute: u16) -> Result<Self, TryFromIntError>
pub fn mins_from_midnight(self) -> u16
Trait Implementations§
Source§impl Clone for ExtendedTime
impl Clone for ExtendedTime
Source§fn clone(&self) -> ExtendedTime
fn clone(&self) -> ExtendedTime
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtendedTime
impl Debug for ExtendedTime
Source§impl From<NaiveTime> for ExtendedTime
impl From<NaiveTime> for ExtendedTime
Source§fn from(time: NaiveTime) -> ExtendedTime
fn from(time: NaiveTime) -> ExtendedTime
Converts to this type from the input type.
Source§impl Hash for ExtendedTime
impl Hash for ExtendedTime
Source§impl Ord for ExtendedTime
impl Ord for ExtendedTime
Source§fn cmp(&self, other: &ExtendedTime) -> Ordering
fn cmp(&self, other: &ExtendedTime) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExtendedTime
impl PartialEq for ExtendedTime
Source§impl PartialOrd for ExtendedTime
impl PartialOrd for ExtendedTime
Source§impl TryInto<NaiveTime> for ExtendedTime
impl TryInto<NaiveTime> for ExtendedTime
impl Copy for ExtendedTime
impl Eq for ExtendedTime
impl StructuralPartialEq for ExtendedTime
Auto Trait Implementations§
impl Freeze for ExtendedTime
impl RefUnwindSafe for ExtendedTime
impl Send for ExtendedTime
impl Sync for ExtendedTime
impl Unpin for ExtendedTime
impl UnwindSafe for ExtendedTime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)