pub enum DatePreference {
Past,
Future,
}Expand description
Preference for closest date calculation
Variants§
Past
Return latest occurrence <= current, or None if no past occurrence exists
Future
Return earliest occurrence >= current
Trait Implementations§
Source§impl Clone for DatePreference
impl Clone for DatePreference
Source§fn clone(&self) -> DatePreference
fn clone(&self) -> DatePreference
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 DatePreference
Source§impl Debug for DatePreference
impl Debug for DatePreference
Source§impl PartialEq for DatePreference
impl PartialEq for DatePreference
impl StructuralPartialEq for DatePreference
Auto Trait Implementations§
impl Freeze for DatePreference
impl RefUnwindSafe for DatePreference
impl Send for DatePreference
impl Sync for DatePreference
impl Unpin for DatePreference
impl UnsafeUnpin for DatePreference
impl UnwindSafe for DatePreference
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