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