Struct transit_model::objects::Calendar[][src]

pub struct Calendar {
    pub id: String,
    pub dates: BTreeSet<Date>,
}

Fields

id: Stringdates: BTreeSet<Date>

Implementations

impl Calendar[src]

pub fn new(calendar_id: String) -> Calendar[src]

pub fn overlaps(&self, other: &Self) -> bool[src]

Returns true if the calendars have at least one date in common

Trait Implementations

impl AddPrefix for Calendar[src]

impl Clone for Calendar[src]

impl Debug for Calendar[src]

impl Default for Calendar[src]

impl<'de> Deserialize<'de> for Calendar[src]

impl GetCorresponding<Calendar> for IdxSet<StopPoint>[src]

impl GetCorresponding<Calendar> for IdxSet<VehicleJourney>[src]

impl GetCorresponding<Calendar> for IdxSet<Company>[src]

impl GetCorresponding<Calendar> for IdxSet<Contributor>[src]

impl GetCorresponding<Calendar> for IdxSet<StopArea>[src]

impl GetCorresponding<Calendar> for IdxSet<Route>[src]

impl GetCorresponding<Calendar> for IdxSet<CommercialMode>[src]

impl GetCorresponding<Calendar> for IdxSet<Transfer>[src]

impl GetCorresponding<Calendar> for IdxSet<Calendar>[src]

impl GetCorresponding<Calendar> for IdxSet<PhysicalMode>[src]

impl GetCorresponding<Calendar> for IdxSet<Line>[src]

impl GetCorresponding<Calendar> for IdxSet<Dataset>[src]

impl GetCorresponding<Calendar> for IdxSet<Network>[src]

impl Id<Calendar> for VehicleJourney[src]

impl Id<Calendar> for Calendar[src]

impl PartialEq<Calendar> for Calendar[src]

impl Serialize for Calendar[src]

impl StructuralPartialEq for Calendar[src]

impl WithId for Calendar[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,