[][src]Struct icalendar::Calendar

pub struct Calendar { /* fields omitted */ }

Represents a calendar

You can .add() Components to this.

Methods

impl Calendar[src]

pub fn new() -> Self[src]

Creates a new Calendar.

pub fn append(&mut self, other: &mut Calendar)[src]

Moves all the elements of other into Self, leaving other empty.

pub fn extend<T, U>(&mut self, other: T) where
    T: IntoIterator<Item = U>,
    U: Into<CalendarElement>, 
[src]

Extends this Calendar with the contends of another.

pub fn push<T: Into<CalendarElement>>(&mut self, component: T) -> &mut Self[src]

Appends an element to the back of the Calendar.

pub fn print(&self) -> Result<(), Error>[src]

Prints to stdout

Trait Implementations

impl Debug for Calendar[src]

impl Default for Calendar[src]

impl Deref for Calendar[src]

type Target = [CalendarElement]

The resulting type after dereferencing.

impl Display for Calendar[src]

impl<C: Into<CalendarElement>> FromIterator<C> 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> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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>,