[−][src]Struct rrule::RRuleSet
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(&mut self) -> Vec<DateTime<Tz>>
[src]
Returns all the recurrences of the rruleset
pub fn before(&mut self, date: 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, date: 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]
&mut 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
Auto Trait Implementations
impl RefUnwindSafe for RRuleSet
[src]
impl Send for RRuleSet
[src]
impl Sync for RRuleSet
[src]
impl Unpin for RRuleSet
[src]
impl UnwindSafe for RRuleSet
[src]
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, 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>,