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