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