Enum icalendar::CalendarComponent
source · #[non_exhaustive]
pub enum CalendarComponent {
Todo(Todo),
Event(Event),
Venue(Venue),
// some variants omitted
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
source§impl Clone for CalendarComponent
impl Clone for CalendarComponent
source§fn clone(&self) -> CalendarComponent
fn clone(&self) -> CalendarComponent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CalendarComponent
impl Debug for CalendarComponent
source§impl<'a> From<Component<'a>> for CalendarComponent
impl<'a> From<Component<'a>> for CalendarComponent
source§fn from(component: Component<'_>) -> CalendarComponent
fn from(component: Component<'_>) -> CalendarComponent
Converts to this type from the input type.
source§impl From<Event> for CalendarComponent
impl From<Event> for CalendarComponent
source§impl From<Todo> for CalendarComponent
impl From<Todo> for CalendarComponent
source§impl From<Venue> for CalendarComponent
impl From<Venue> for CalendarComponent
source§impl FromStr for CalendarComponent
impl FromStr for CalendarComponent
source§impl PartialEq<CalendarComponent> for CalendarComponent
impl PartialEq<CalendarComponent> for CalendarComponent
source§fn eq(&self, other: &CalendarComponent) -> bool
fn eq(&self, other: &CalendarComponent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.