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