[][src]Struct aliasable::vec::AliasableVec

pub struct AliasableVec<T> { /* fields omitted */ }

A basic aliasable (non core::ptr::Unique) alternative to alloc::vec::Vec.

Implementations

impl<T> AliasableVec<T>[src]

pub fn from_unique(vec: UniqueVec<T>) -> Self[src]

Construct an AliasableVec from a UniqueVec.

pub fn into_unique(vec: AliasableVec<T>) -> UniqueVec<T>[src]

Consumes the AliasableVec and converts it back into a non-aliasable UniqueVec.

pub fn into_unique_pin(pin: Pin<AliasableVec<T>>) -> Pin<UniqueVec<T>>[src]

Convert a pinned AliasableVec to a core::ptr::Unique backed pinned UniqueVec.

pub fn from_unique_pin(pin: Pin<UniqueVec<T>>) -> Pin<AliasableVec<T>>[src]

Convert a pinned core::ptr::Unique backed UniqueVec to a pinned AliasableVec.

Trait Implementations

impl<T> AsMut<[T]> for AliasableVec<T>[src]

impl<T> AsRef<[T]> for AliasableVec<T>[src]

impl<T> Debug for AliasableVec<T> where
    T: Debug
[src]

impl<T> Deref for AliasableVec<T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<T> DerefMut for AliasableVec<T>[src]

impl<T> Drop for AliasableVec<T>[src]

impl<T> From<AliasableVec<T>> for UniqueVec<T>[src]

impl<T> From<Vec<T, Global>> for AliasableVec<T>[src]

Auto Trait Implementations

impl<T> !Send for AliasableVec<T>

impl<T> !Sync for AliasableVec<T>

impl<T> Unpin for AliasableVec<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.