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