Enum gedcomx_date::GedcomxDate
source · pub enum GedcomxDate {
Simple(Simple),
Range(Range),
Recurring(Recurring),
}
Expand description
Gedcomx date Enum that holds the three types of gedcomx dates
Variants§
Simple(Simple)
Simple date. See 5.2 Simple date, 5.7 Approximate date.
Range(Range)
Date range. See 5.4 Closed date range, 5.5 Open ended date range, 5.8 Approximate date range.
Recurring(Recurring)
Recurring date. See 5.6 Recurring date.
Implementations§
source§impl GedcomxDate
impl GedcomxDate
GedxomxDate implementation. You can match over the parse result, or use these methods.
Trait Implementations§
source§impl Clone for GedcomxDate
impl Clone for GedcomxDate
source§fn clone(&self) -> GedcomxDate
fn clone(&self) -> GedcomxDate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GedcomxDate
impl Debug for GedcomxDate
source§impl PartialEq<GedcomxDate> for GedcomxDate
impl PartialEq<GedcomxDate> for GedcomxDate
source§fn eq(&self, other: &GedcomxDate) -> bool
fn eq(&self, other: &GedcomxDate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GedcomxDate
impl Eq for GedcomxDate
impl StructuralEq for GedcomxDate
impl StructuralPartialEq for GedcomxDate
Auto Trait Implementations§
impl RefUnwindSafe for GedcomxDate
impl Send for GedcomxDate
impl Sync for GedcomxDate
impl Unpin for GedcomxDate
impl UnwindSafe for GedcomxDate
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