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