Struct opening_hours_syntax::extended_time::ExtendedTime
source · [−]pub struct ExtendedTime { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Clone for ExtendedTime
impl Clone for ExtendedTime
sourcefn clone(&self) -> ExtendedTime
fn clone(&self) -> ExtendedTime
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ExtendedTime
impl Debug for ExtendedTime
sourceimpl From<NaiveTime> for ExtendedTime
impl From<NaiveTime> for ExtendedTime
sourcefn from(time: NaiveTime) -> ExtendedTime
fn from(time: NaiveTime) -> ExtendedTime
Converts to this type from the input type.
sourceimpl Hash for ExtendedTime
impl Hash for ExtendedTime
sourceimpl Ord for ExtendedTime
impl Ord for ExtendedTime
sourceimpl PartialEq<ExtendedTime> for ExtendedTime
impl PartialEq<ExtendedTime> for ExtendedTime
sourcefn eq(&self, other: &ExtendedTime) -> bool
fn eq(&self, other: &ExtendedTime) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ExtendedTime) -> bool
fn ne(&self, other: &ExtendedTime) -> bool
This method tests for !=.
sourceimpl PartialOrd<ExtendedTime> for ExtendedTime
impl PartialOrd<ExtendedTime> for ExtendedTime
sourcefn partial_cmp(&self, other: &ExtendedTime) -> Option<Ordering>
fn partial_cmp(&self, other: &ExtendedTime) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl TryInto<NaiveTime> for ExtendedTime
impl TryInto<NaiveTime> for ExtendedTime
impl Copy for ExtendedTime
impl Eq for ExtendedTime
impl StructuralEq for ExtendedTime
impl StructuralPartialEq for ExtendedTime
Auto Trait Implementations
impl RefUnwindSafe for ExtendedTime
impl Send for ExtendedTime
impl Sync for ExtendedTime
impl Unpin for ExtendedTime
impl UnwindSafe for ExtendedTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more