[−][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
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.
fn deref(&self) -> &[CalendarElement]
[src]
impl Display for Calendar
[src]
impl<C: Into<CalendarElement>> FromIterator<C> for Calendar
[src]
fn from_iter<T: IntoIterator<Item = C>>(iter: T) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnwindSafe for Calendar
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,