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]
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 before(&self, dt: DateTime<Tz>, inc: bool) -> Option<DateTime<Tz>>[src]
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]
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]
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
Auto Trait Implementations
impl RefUnwindSafe for RRuleSet
impl Send for RRuleSet
impl Sync for RRuleSet
impl Unpin for RRuleSet
impl UnwindSafe for RRuleSet
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more