Struct CartableOptionPointer

struct CartableOptionPointer<C> { ... }
where
    C: CartablePointerLike

A type with similar semantics as Option<C<T>> but with a niche.

This type cannot be publicly constructed. To use this in a Yoke, see Yoke::convert_cart_into_option_pointer.

Implementations

impl<C> CartableOptionPointer<C>

fn is_none(self: &Self) -> bool

Returns whether this instance is None. From the return value:

  • If true, the instance is None
  • If false, the instance is a valid SelectedRc

impl<C> Clone for CartableOptionPointer<C>

fn clone(self: &Self) -> Self

impl<C> CloneableCart for CartableOptionPointer<C>

impl<C> Debug for CartableOptionPointer<C>

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

impl<C> Drop for CartableOptionPointer<C>

fn drop(self: &mut Self)

impl<C> Freeze for CartableOptionPointer<C>

impl<C> RefUnwindSafe for CartableOptionPointer<C>

impl<C> Send for CartableOptionPointer<C>

impl<C> Sync for CartableOptionPointer<C>

impl<C> Unpin for CartableOptionPointer<C>

impl<C> UnsafeUnpin for CartableOptionPointer<C>

impl<C> UnwindSafe for CartableOptionPointer<C>

impl<T> Any for CartableOptionPointer<C>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for CartableOptionPointer<C>

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

impl<T> BorrowMut for CartableOptionPointer<C>

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

impl<T> CloneToUninit for CartableOptionPointer<C>

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

impl<T> ErasedDestructor for CartableOptionPointer<C>

impl<T> From for CartableOptionPointer<C>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for CartableOptionPointer<C>

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

impl<T, U> Into for CartableOptionPointer<C>

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 CartableOptionPointer<C>

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

impl<T, U> TryInto for CartableOptionPointer<C>

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