[−][src]Struct icalendar::Calendar
Represents a calendar
You can .add()
Component
s 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]
T: IntoIterator<Item = U>,
U: Into<CalendarElement>,
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 Default for Calendar
[src]
impl ToString for Calendar
[src]
impl Deref for Calendar
[src]
type Target = [CalendarElement]
The resulting type after dereferencing.
fn deref(&self) -> &[CalendarElement]
[src]
impl Debug for Calendar
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,