Enum icalendar::CalendarComponent
source · #[non_exhaustive]pub enum CalendarComponent {
Todo(Todo),
Event(Event),
Venue(Venue),
}
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 for CalendarComponent
impl PartialEq 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 ==
.impl Eq for CalendarComponent
impl StructuralPartialEq for CalendarComponent
Auto Trait Implementations§
impl Freeze for CalendarComponent
impl RefUnwindSafe for CalendarComponent
impl Send for CalendarComponent
impl Sync for CalendarComponent
impl Unpin for CalendarComponent
impl UnwindSafe for CalendarComponent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)