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