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