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