pub struct Component<'a> { /* private fields */ }
Expand description
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§
Source§impl<'a> Component<'a>
impl<'a> Component<'a>
Sourcepub fn add_property<P>(&mut self, property: P)
pub fn add_property<P>(&mut self, property: P)
Adds a property to a component. Some properties can be added multiple times. Each occurrence will be shown as single content line.
Sourcepub fn add_component<C>(&mut self, component: C)
pub fn add_component<C>(&mut self, component: C)
Adds a sub-component to this component.
Trait Implementations§
Source§impl<'a> Ord for Component<'a>
impl<'a> Ord for Component<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Component<'a>
impl<'a> PartialOrd for Component<'a>
impl<'a> Eq for Component<'a>
impl<'a> StructuralPartialEq for Component<'a>
Auto Trait Implementations§
impl<'a> Freeze for Component<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more