#[repr(C, u8)]pub enum OptionU8Vec {
None,
Some(U8Vec),
}Variants§
Implementations§
Source§impl OptionU8Vec
impl OptionU8Vec
pub fn into_option(&self) -> Option<U8Vec>
Source§impl OptionU8Vec
impl OptionU8Vec
pub fn as_option(&self) -> Option<&U8Vec>
pub fn replace(&mut self, value: U8Vec) -> OptionU8Vec
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&U8Vec>
pub fn as_mut(&mut self) -> Option<&mut U8Vec>
pub fn map<U, F: FnOnce(U8Vec) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionU8Vec
impl Clone for OptionU8Vec
Source§fn clone(&self) -> OptionU8Vec
fn clone(&self) -> OptionU8Vec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptionU8Vec
impl Debug for OptionU8Vec
Source§impl Default for OptionU8Vec
impl Default for OptionU8Vec
Source§fn default() -> OptionU8Vec
fn default() -> OptionU8Vec
Returns the “default value” for a type. Read more
Source§impl Hash for OptionU8Vec
impl Hash for OptionU8Vec
Source§impl Ord for OptionU8Vec
impl Ord for OptionU8Vec
Source§fn cmp(&self, other: &OptionU8Vec) -> Ordering
fn cmp(&self, other: &OptionU8Vec) -> Ordering
1.21.0 · 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 PartialEq for OptionU8Vec
impl PartialEq for OptionU8Vec
Source§impl PartialOrd for OptionU8Vec
impl PartialOrd for OptionU8Vec
impl Eq for OptionU8Vec
impl StructuralPartialEq for OptionU8Vec
Auto Trait Implementations§
impl Freeze for OptionU8Vec
impl RefUnwindSafe for OptionU8Vec
impl Send for OptionU8Vec
impl Sync for OptionU8Vec
impl Unpin for OptionU8Vec
impl UnwindSafe for OptionU8Vec
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