pub fn union(&self, other: &DateRange) -> DateRange {
        let from = cmp::min(self.from, other.from);
        let to = cmp::max(self.to, other.to);
        DateRange::new(from, to)
    }
// TODO: consider whether this should be an Option, with None being
// returned where the two DateRanges are disjoint
/// Returns the union of the two input `DateRange`. Since
/// `DateRange` cannot be disjoint, this will span from the
/// earliest start date to the latest end date, with no regard
/// for whether the porition in between is continuous
consider whether this should be an Option, with None being
returned where the two DateRanges are disjoint
Returns the union of the two input `DateRange`. Since
`DateRange` cannot be disjoint, this will span from the
earliest start date to the latest end date, with no regard
for whether the porition in between is continuous
consider whether this should be an Option with None being returned where the two DateRanges are disjoint Returns the union of the two input ` DateRange ` . Since ` DateRange ` cannot be disjoint this will span from the earliest start date to the latest end date with no regard for whether the porition in between is continuous
pub fn union(&self, other: &DateRange) -> DateRange {
        let from = cmp::min(self.from, other.from);
        let to = cmp::max(self.to, other.to);
        DateRange::new(from, to)
    }
pub fn union ( & self , other : & DateRange ) -> DateRange { let from = cmp :: min ( self . from , other . from ) ; let to = cmp :: max ( self . to , other . to ) ; DateRange :: new ( from , to ) }
TODO: consider whether this should be an Option, with None being
returned where the two DateRanges are disjoint
Returns the union of the two input `DateRange`.
TODO : consider whether this should be an Option with None being returned where the two DateRanges are disjoint Returns the union of the two input ` DateRange ` .
&self
other
&DateRange
&self
other
&DateRange