[][src]Struct ics::components::Component

pub struct Component<'a> { /* fields omitted */ }

A Component contains properties and sometimes sub-components.

This can be used to create a new calendar component by either creating a wrapper type or just use it as it is.

Implementations

impl<'a> Component<'a>[src]

pub fn new<S>(name: S) -> Self where
    S: Into<Cow<'a, str>>, 
[src]

Creates a new component with the given name.

pub fn add_property<P>(&mut self, property: P) where
    P: Into<Property<'a>>, 
[src]

Adds a property to a component. Some properties can be added multiple times. Each occurrence will be shown as single content line.

pub fn add_component<C>(&mut self, component: C) where
    C: Into<Component<'a>>, 
[src]

Adds a sub-component to this component.

Trait Implementations

impl<'a> Clone for Component<'a>[src]

impl<'a> Debug for Component<'a>[src]

impl<'a> Display for Component<'a>[src]

impl<'a> Eq for Component<'a>[src]

impl<'a> From<Alarm<'a>> for Component<'a>[src]

impl<'a> From<Daylight<'a>> for Component<'a>[src]

impl<'a> From<Event<'a>> for Component<'a>[src]

impl<'a> From<FreeBusy<'a>> for Component<'a>[src]

impl<'a> From<ICalendar<'a>> for Component<'a>[src]

impl<'a> From<Journal<'a>> for Component<'a>[src]

impl<'a> From<Standard<'a>> for Component<'a>[src]

impl<'a> From<TimeZone<'a>> for Component<'a>[src]

impl<'a> From<ToDo<'a>> for Component<'a>[src]

impl<'a> Hash for Component<'a>[src]

impl<'a> Ord for Component<'a>[src]

impl<'a> PartialEq<Component<'a>> for Component<'a>[src]

impl<'a> PartialOrd<Component<'a>> for Component<'a>[src]

impl<'a> StructuralEq for Component<'a>[src]

impl<'a> StructuralPartialEq for Component<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Component<'a>

impl<'a> Send for Component<'a>

impl<'a> Sync for Component<'a>

impl<'a> Unpin for Component<'a>

impl<'a> UnwindSafe for Component<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.