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