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