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