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