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