Struct options_common::ExpirationDate
source · [−]pub struct ExpirationDate(pub NaiveDate);
Tuple Fields
0: NaiveDate
Implementations
sourceimpl ExpirationDate
impl ExpirationDate
Trait Implementations
sourceimpl Clone for ExpirationDate
impl Clone for ExpirationDate
sourcefn clone(&self) -> ExpirationDate
fn clone(&self) -> ExpirationDate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExpirationDate
impl Debug for ExpirationDate
sourceimpl Default for ExpirationDate
impl Default for ExpirationDate
sourceimpl Display for ExpirationDate
impl Display for ExpirationDate
sourceimpl FromStr for ExpirationDate
impl FromStr for ExpirationDate
sourceimpl Hash for ExpirationDate
impl Hash for ExpirationDate
sourceimpl Ord for ExpirationDate
impl Ord for ExpirationDate
sourcefn cmp(&self, other: &ExpirationDate) -> Ordering
fn cmp(&self, other: &ExpirationDate) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ExpirationDate> for ExpirationDate
impl PartialEq<ExpirationDate> for ExpirationDate
sourcefn eq(&self, other: &ExpirationDate) -> bool
fn eq(&self, other: &ExpirationDate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExpirationDate) -> bool
fn ne(&self, other: &ExpirationDate) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ExpirationDate> for ExpirationDate
impl PartialOrd<ExpirationDate> for ExpirationDate
sourcefn partial_cmp(&self, other: &ExpirationDate) -> Option<Ordering>
fn partial_cmp(&self, other: &ExpirationDate) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for ExpirationDate
impl Eq for ExpirationDate
impl StructuralEq for ExpirationDate
impl StructuralPartialEq for ExpirationDate
Auto Trait Implementations
impl RefUnwindSafe for ExpirationDate
impl Send for ExpirationDate
impl Sync for ExpirationDate
impl Unpin for ExpirationDate
impl UnwindSafe for ExpirationDate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.