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