[][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 FIXME code repetition

Trait Implementations

impl ToString for Calendar[src]

impl Default for Calendar[src]

impl Debug for Calendar[src]

impl Deref for Calendar[src]

type Target = [CalendarElement]

The resulting type after dereferencing.

Auto Trait Implementations

impl Send for Calendar

impl Sync for Calendar

Blanket Implementations

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

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]