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