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