Struct rrule::RRuleSet[][src]

pub struct RRuleSet {
    pub rrule: Vec<RRule>,
    pub rdate: Vec<DateTime<Tz>>,
    pub exrule: Vec<RRule>,
    pub exdate: Vec<DateTime<Tz>>,
    pub dtstart: Option<DateTime<Tz>>,
}

Fields

rrule: Vec<RRule>rdate: Vec<DateTime<Tz>>exrule: Vec<RRule>exdate: Vec<DateTime<Tz>>dtstart: Option<DateTime<Tz>>

Implementations

impl RRuleSet[src]

pub fn new() -> Self[src]

pub fn rrule(&mut self, rrule: RRule)[src]

pub fn exrule(&mut self, rrule: RRule)[src]

pub fn rdate(&mut self, rdate: DateTime<Tz>)[src]

pub fn exdate(&mut self, exdate: DateTime<Tz>)[src]

pub fn all(&self) -> Vec<DateTime<Tz>>[src]

Returns all the recurrences of the rruleset

pub fn before(&self, dt: DateTime<Tz>, inc: bool) -> Option<DateTime<Tz>>[src]

Returns the last recurrence before the given datetime instance. The inc keyword defines what happens if dt is an recurrence. With inc == true, if dt itself is an recurrence, it will be returned.

pub fn after(&self, dt: DateTime<Tz>, inc: bool) -> Option<DateTime<Tz>>[src]

Returns the last recurrence after the given datetime instance. The inc keyword defines what happens if dt is an recurrence. With inc == true, if dt itself is an recurrence, it will be returned.

pub fn between(
    &self,
    after: DateTime<Tz>,
    before: DateTime<Tz>,
    inc: bool
) -> Vec<DateTime<Tz>>
[src]

Returns all the recurrences of the rrule between after and before. The inc keyword defines what happens if after and/or before are themselves recurrences. With inc == true, they will be included in the list, if they are found in the recurrence set.

Trait Implementations

impl Clone for RRuleSet[src]

impl Debug for RRuleSet[src]

impl FromStr for RRuleSet[src]

type Err = RRuleParseError

The associated error which can be returned from parsing.

impl IntoIterator for RRuleSet[src]

type Item = DateTime<Tz>

The type of the elements being iterated over.

type IntoIter = RRuleSetIter

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.