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