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