Struct NichedOption

struct NichedOption<U, N: usize>(1438)

Optional type which uses [NichedOptionULE<U,N>] as ULE type.

The implementors guarantee that N == core::mem::size_of::<Self>() [repr(transparent)] guarantees that the layout is same as [Option<U>]

Implementations

impl<'a, T: AsULE + 'static, N: usize> ZeroMapKV for NichedOption<T, N>

impl<T> Any for NichedOption<U, N>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for NichedOption<U, N>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for NichedOption<U, N>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for NichedOption<U, N>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> ErasedDestructor for NichedOption<U, N>

impl<T> From for NichedOption<U, N>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for NichedOption<U, N>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, N: usize> IntoIterator for NichedOption<T, N>

fn into_iter(self: Self) -> <Self as >::IntoIter

impl<T, U> Into for NichedOption<U, N>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for NichedOption<U, N>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for NichedOption<U, N>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<U, N: usize> Default for NichedOption<U, N>

fn default() -> Self

impl<U, N: usize> Freeze for NichedOption<U, N>

impl<U, N: usize> RefUnwindSafe for NichedOption<U, N>

impl<U, N: usize> Send for NichedOption<U, N>

impl<U, N: usize> StructuralPartialEq for NichedOption<U, N>

impl<U, N: usize> Sync for NichedOption<U, N>

impl<U, N: usize> Unpin for NichedOption<U, N>

impl<U, N: usize> UnsafeUnpin for NichedOption<U, N>

impl<U, N: usize> UnwindSafe for NichedOption<U, N>

impl<U: $crate::clone::Clone, N: usize> Clone for NichedOption<U, N>

fn clone(self: &Self) -> NichedOption<U, N>

impl<U: $crate::cmp::Eq, N: usize> Eq for NichedOption<U, N>

impl<U: $crate::cmp::PartialEq, N: usize> PartialEq for NichedOption<U, N>

fn eq(self: &Self, other: &NichedOption<U, N>) -> bool

impl<U: $crate::fmt::Debug, N: usize> Debug for NichedOption<U, N>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<U: $crate::hash::Hash, N: usize> Hash for NichedOption<U, N>

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl<U: $crate::marker::Copy, N: usize> Copy for NichedOption<U, N>

impl<U: AsULE, N: usize> AsULE for NichedOption<U, N>

fn to_unaligned(self: Self) -> <Self as >::ULE
fn from_unaligned(unaligned: <Self as >::ULE) -> Self