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