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