Struct rrule::RRule [−][src]
Fields
options: ParsedOptions
Implementations
impl RRule
[src]
pub fn new(options: ParsedOptions) -> Self
[src]
pub fn all(&self) -> Vec<DateTime<Tz>>
[src]
Returns all the recurrences of the rrule
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]
&self,
after: DateTime<Tz>,
before: DateTime<Tz>,
inc: bool
) -> Vec<DateTime<Tz>>
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl IntoIterator for RRule
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,