[−][src]Struct aliasable::vec::AliasableVec
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]
T: Debug,
impl<T> Deref for AliasableVec<T>
[src]
impl<T> DerefMut for AliasableVec<T>
[src]
impl<T> Drop for AliasableVec<T>
[src]
impl<T> From<AliasableVec<T>> for UniqueVec<T>
[src]
pub fn from(vec: AliasableVec<T>) -> Self
[src]
impl<T> From<Vec<T, Global>> for AliasableVec<T>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,