pub struct CalendarDay { /* private fields */ }Implementations§
Source§impl CalendarDay
impl CalendarDay
pub fn containing(unix_seconds: i64) -> CalendarDay
pub fn start_unix_seconds(self) -> i64
Trait Implementations§
Source§impl Clone for CalendarDay
impl Clone for CalendarDay
impl Copy for CalendarDay
Source§impl Debug for CalendarDay
impl Debug for CalendarDay
Source§impl Display for CalendarDay
impl Display for CalendarDay
impl Eq for CalendarDay
Source§impl FromStr for CalendarDay
impl FromStr for CalendarDay
Source§type Err = CalendarDayError
type Err = CalendarDayError
The associated error which can be returned from parsing.
Source§fn from_str(text: &str) -> Result<CalendarDay, CalendarDayError>
fn from_str(text: &str) -> Result<CalendarDay, CalendarDayError>
Parses a string
s to return a value of this type. Read moreSource§impl Ord for CalendarDay
impl Ord for CalendarDay
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 CalendarDay
impl PartialEq for CalendarDay
Source§impl PartialOrd for CalendarDay
impl PartialOrd for CalendarDay
impl StructuralPartialEq for CalendarDay
Auto Trait Implementations§
impl Forget for CalendarDay
impl Freeze for CalendarDay
impl Move for CalendarDay
impl RefUnwindSafe for CalendarDay
impl Send for CalendarDay
impl Sync for CalendarDay
impl Unpin for CalendarDay
impl UnsafeUnpin for CalendarDay
impl UnwindSafe for CalendarDay
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.