[][src]Struct rrule::RRule

pub struct RRule {
    pub options: ParsedOptions,
}

Fields

options: ParsedOptions

Implementations

impl RRule[src]

pub fn new(options: ParsedOptions) -> Self[src]

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

Returns all the recurrences of the rrule

pub fn before(&mut 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(&mut 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(
    &mut 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 RRule[src]

impl Debug for RRule[src]

impl FromStr for RRule[src]

type Err = RRuleParseError

The associated error which can be returned from parsing.

Auto Trait Implementations

impl RefUnwindSafe for RRule

impl Send for RRule

impl Sync for RRule

impl Unpin for RRule

impl UnwindSafe for RRule

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.