pub struct VariableTime {
pub event: TimeEvent,
pub offset: i16,
}Fields§
§event: TimeEvent§offset: i16Implementations§
Source§impl VariableTime
impl VariableTime
Sourcepub fn stable_partial_ord(&self, other: &Self) -> Option<Ordering>
pub fn stable_partial_ord(&self, other: &Self) -> Option<Ordering>
Implement a safe partial order for variable times. Some events such as (dusk+02:00-dawn-02:00) may not be ordered the same way depending on the season.
Trait Implementations§
Source§impl Clone for VariableTime
impl Clone for VariableTime
impl Copy for VariableTime
Source§impl Debug for VariableTime
impl Debug for VariableTime
Source§impl Display for VariableTime
impl Display for VariableTime
impl Eq for VariableTime
Source§impl Hash for VariableTime
impl Hash for VariableTime
Source§impl Ord for VariableTime
impl Ord for VariableTime
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for VariableTime
impl PartialEq for VariableTime
Source§impl PartialOrd for VariableTime
impl PartialOrd for VariableTime
impl StructuralPartialEq for VariableTime
Auto Trait Implementations§
impl Freeze for VariableTime
impl RefUnwindSafe for VariableTime
impl Send for VariableTime
impl Sync for VariableTime
impl Unpin for VariableTime
impl UnsafeUnpin for VariableTime
impl UnwindSafe for VariableTime
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