Enum gedcomx_date::GedcomxDate
[−]
[src]
pub enum GedcomxDate { Simple(Simple), Range(Range), Recurring(Recurring), }
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.
Methods
impl GedcomxDate
[src]
GedxomxDate implementation. You can match over the parse result, or use these methods.
fn get_simple_date(&self) -> Option<Simple>
fn get_range(&self) -> Option<Range>
fn get_recurring(&self) -> Option<Recurring>
Trait Implementations
impl Eq for GedcomxDate
[src]
impl PartialEq for GedcomxDate
[src]
fn eq(&self, __arg_0: &GedcomxDate) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GedcomxDate) -> bool
This method tests for !=
.
impl Debug for GedcomxDate
[src]
impl Copy for GedcomxDate
[src]
impl Clone for GedcomxDate
[src]
fn clone(&self) -> GedcomxDate
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more