#[repr(C, u8)]pub enum OptionTrayIconImage {
None,
Some(TrayIconImage),
}Variants§
None
Some(TrayIconImage)
Implementations§
Source§impl OptionTrayIconImage
impl OptionTrayIconImage
pub fn into_option(&self) -> Option<TrayIconImage>
Source§impl OptionTrayIconImage
impl OptionTrayIconImage
pub const fn as_option(&self) -> Option<&TrayIconImage>
pub const fn replace(&mut self, value: TrayIconImage) -> OptionTrayIconImage
pub const fn is_some(&self) -> bool
pub const fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&TrayIconImage>
pub const fn as_mut(&mut self) -> Option<&mut TrayIconImage>
pub fn map<U, F: FnOnce(TrayIconImage) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionTrayIconImage
impl Clone for OptionTrayIconImage
Source§fn clone(&self) -> OptionTrayIconImage
fn clone(&self) -> OptionTrayIconImage
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 moreSource§impl Debug for OptionTrayIconImage
impl Debug for OptionTrayIconImage
Source§impl Default for OptionTrayIconImage
impl Default for OptionTrayIconImage
Source§fn default() -> OptionTrayIconImage
fn default() -> OptionTrayIconImage
Returns the “default value” for a type. Read more
impl Eq for OptionTrayIconImage
Source§impl From<Option<TrayIconImage>> for OptionTrayIconImage
impl From<Option<TrayIconImage>> for OptionTrayIconImage
Source§fn from(o: Option<TrayIconImage>) -> OptionTrayIconImage
fn from(o: Option<TrayIconImage>) -> OptionTrayIconImage
Converts to this type from the input type.
Source§impl From<OptionTrayIconImage> for Option<TrayIconImage>
impl From<OptionTrayIconImage> for Option<TrayIconImage>
Source§fn from(o: OptionTrayIconImage) -> Option<TrayIconImage>
fn from(o: OptionTrayIconImage) -> Option<TrayIconImage>
Converts to this type from the input type.
Source§impl PartialEq for OptionTrayIconImage
impl PartialEq for OptionTrayIconImage
impl StructuralPartialEq for OptionTrayIconImage
Auto Trait Implementations§
impl Freeze for OptionTrayIconImage
impl RefUnwindSafe for OptionTrayIconImage
impl Send for OptionTrayIconImage
impl Sync for OptionTrayIconImage
impl Unpin for OptionTrayIconImage
impl UnsafeUnpin for OptionTrayIconImage
impl UnwindSafe for OptionTrayIconImage
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