[−][src]Enum zzp::partial_date::PartialDate
Variants
Year(Year)
YearMonth(YearMonth)
YearMonthDay(Date)
Implementations
impl PartialDate
[src]
pub fn as_start_date(self) -> Date
[src]
Interpret the partial date as start date.
This gives the first day of a year or month if more specific fields are not given.
pub fn as_end_date(self) -> Date
[src]
Interpret the partial date as an end date.
This gives the last day of a year or month if more specific fields are not given.
pub fn as_range(self) -> Range<Date>
[src]
Interpret the partial date as a half-open date range.
This gives a date range comprising of the entire year or month, or just a single day.
Trait Implementations
impl Clone for PartialDate
[src]
pub fn clone(&self) -> PartialDate
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PartialDate
[src]
impl Debug for PartialDate
[src]
impl Eq for PartialDate
[src]
impl FromStr for PartialDate
[src]
type Err = ParsePartialDateError
The associated error which can be returned from parsing.
pub fn from_str(data: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<PartialDate> for PartialDate
[src]
pub fn eq(&self, other: &PartialDate) -> bool
[src]
pub fn ne(&self, other: &PartialDate) -> bool
[src]
impl StructuralEq for PartialDate
[src]
impl StructuralPartialEq for PartialDate
[src]
Auto Trait Implementations
impl RefUnwindSafe for PartialDate
[src]
impl Send for PartialDate
[src]
impl Sync for PartialDate
[src]
impl Unpin for PartialDate
[src]
impl UnwindSafe for PartialDate
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,