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