[][src]Struct rrule::RRuleSet

pub struct RRuleSet {
    pub dtstart: Option<DateTime<Utc>>,
    // some fields omitted
}

Fields

dtstart: Option<DateTime<Utc>>

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<Utc>)[src]

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

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

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

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

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

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

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

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

Trait Implementations

impl Debug for RRuleSet[src]

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, 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.