#[repr(C, u8)]pub enum OptionTrayEvent {
None,
Some(TrayEvent),
}Variants§
Implementations§
Source§impl OptionTrayEvent
impl OptionTrayEvent
pub fn into_option(&self) -> Option<TrayEvent>
Source§impl OptionTrayEvent
impl OptionTrayEvent
pub const fn as_option(&self) -> Option<&TrayEvent>
pub const fn replace(&mut self, value: TrayEvent) -> OptionTrayEvent
pub const fn is_some(&self) -> bool
pub const fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&TrayEvent>
pub const fn as_mut(&mut self) -> Option<&mut TrayEvent>
pub fn map<U, F: FnOnce(TrayEvent) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionTrayEvent
impl Clone for OptionTrayEvent
Source§fn clone(&self) -> OptionTrayEvent
fn clone(&self) -> OptionTrayEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptionTrayEvent
Source§impl Debug for OptionTrayEvent
impl Debug for OptionTrayEvent
Source§impl Default for OptionTrayEvent
impl Default for OptionTrayEvent
Source§fn default() -> OptionTrayEvent
fn default() -> OptionTrayEvent
Returns the “default value” for a type. Read more
impl Eq for OptionTrayEvent
Source§impl Hash for OptionTrayEvent
impl Hash for OptionTrayEvent
Source§impl Ord for OptionTrayEvent
impl Ord for OptionTrayEvent
Source§fn cmp(&self, other: &OptionTrayEvent) -> Ordering
fn cmp(&self, other: &OptionTrayEvent) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OptionTrayEvent
impl PartialEq for OptionTrayEvent
Source§impl PartialOrd for OptionTrayEvent
impl PartialOrd for OptionTrayEvent
impl StructuralPartialEq for OptionTrayEvent
Auto Trait Implementations§
impl Freeze for OptionTrayEvent
impl RefUnwindSafe for OptionTrayEvent
impl Send for OptionTrayEvent
impl Sync for OptionTrayEvent
impl Unpin for OptionTrayEvent
impl UnsafeUnpin for OptionTrayEvent
impl UnwindSafe for OptionTrayEvent
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