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