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
Source§fn clone(&self) -> VariableTime
fn clone(&self) -> VariableTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Source§fn cmp(&self, other: &VariableTime) -> Ordering
fn cmp(&self, other: &VariableTime) -> Ordering
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
Source§impl PartialEq for VariableTime
impl PartialEq for VariableTime
Source§fn eq(&self, other: &VariableTime) -> bool
fn eq(&self, other: &VariableTime) -> bool
Tests for
self and other values to be equal, and is used by ==.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