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