#[repr(C, u8)]pub enum OptionU64 {
None,
Some(u64),
}Variants§
Implementations§
Source§impl OptionU64
impl OptionU64
pub fn as_option(&self) -> Option<&u64>
pub fn replace(&mut self, value: u64) -> OptionU64
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&u64>
pub fn as_mut(&mut self) -> Option<&mut u64>
pub fn map<U, F: FnOnce(u64) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Ord for OptionU64
impl Ord for OptionU64
Source§impl PartialOrd for OptionU64
impl PartialOrd for OptionU64
impl Copy for OptionU64
impl Eq for OptionU64
impl StructuralPartialEq for OptionU64
Auto Trait Implementations§
impl Freeze for OptionU64
impl RefUnwindSafe for OptionU64
impl Send for OptionU64
impl Sync for OptionU64
impl Unpin for OptionU64
impl UnwindSafe for OptionU64
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