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