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