pub enum RecentKind<T> {
None,
Before(T),
After(T),
}Variants§
Implementations§
Source§impl RecentKind<PeriodKind>
impl RecentKind<PeriodKind>
pub fn from_str(value: &str) -> MyResult<Self>
pub fn from_times<Tz: TimeZone>( file_time: &DateTime<Utc>, curr_time: &DateTime<Utc>, curr_calendar: &Calendar, zone: &Tz, ) -> Self
pub fn subtract_from<Tz: TimeZone>( &self, time: &DateTime<Utc>, zone: &Tz, ) -> RecentKind<DateTime<Utc>>
Trait Implementations§
Source§impl<T: Clone> Clone for RecentKind<T>
impl<T: Clone> Clone for RecentKind<T>
Source§fn clone(&self) -> RecentKind<T>
fn clone(&self) -> RecentKind<T>
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<T: Copy> Copy for RecentKind<T>
Source§impl<T: Debug> Debug for RecentKind<T>
impl<T: Debug> Debug for RecentKind<T>
Source§impl<T> Default for RecentKind<T>
impl<T> Default for RecentKind<T>
Source§impl<T: PartialEq> PartialEq for RecentKind<T>
impl<T: PartialEq> PartialEq for RecentKind<T>
impl<T: PartialEq> StructuralPartialEq for RecentKind<T>
Auto Trait Implementations§
impl<T> Freeze for RecentKind<T>where
T: Freeze,
impl<T> RefUnwindSafe for RecentKind<T>where
T: RefUnwindSafe,
impl<T> Send for RecentKind<T>where
T: Send,
impl<T> Sync for RecentKind<T>where
T: Sync,
impl<T> Unpin for RecentKind<T>where
T: Unpin,
impl<T> UnsafeUnpin for RecentKind<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RecentKind<T>where
T: UnwindSafe,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more