[][src]Struct aliasable::boxed::AliasableBox

pub struct AliasableBox<T: ?Sized>(_);

Basic aliasable (non core::ptr::Unique) alternative to alloc::boxed::Box.

Implementations

impl<T: ?Sized> AliasableBox<T>[src]

pub fn from_unique(ptr: UniqueBox<T>) -> Self[src]

Construct an AliasableBox from a UniqueBox.

pub fn into_unique(mut ptr: AliasableBox<T>) -> UniqueBox<T>

Notable traits for Box<F, A>

impl<F, A> Future for Box<F, A> where
    A: Allocator + 'static,
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
    A: Allocator,
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
[src]

Consumes self and converts it into a non-aliasable UniqueBox.

pub fn into_unique_pin(pin: Pin<AliasableBox<T>>) -> Pin<UniqueBox<T>>[src]

Convert a pinned AliasableBox to a core::ptr::Unique backed pinned UniqueBox.

pub fn from_unique_pin(pin: Pin<UniqueBox<T>>) -> Pin<AliasableBox<T>>[src]

Convert a pinned core::ptr::Unique backed UniqueBox to a pinned AliasableBox.

Trait Implementations

impl<T: ?Sized> AliasableDeref for AliasableBox<T>[src]

impl<T: ?Sized> AsMut<T> for AliasableBox<T>[src]

impl<T: ?Sized> AsRef<T> for AliasableBox<T>[src]

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

impl<T: ?Sized> Deref for AliasableBox<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: ?Sized> DerefMut for AliasableBox<T>[src]

impl<T: ?Sized> Drop for AliasableBox<T>[src]

impl<T: ?Sized> From<Box<T, Global>> for AliasableBox<T>[src]

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

impl<T: ?Sized> StableDeref for AliasableBox<T>[src]

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

Auto Trait Implementations

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

impl<T: ?Sized> Unpin for AliasableBox<T>[src]

impl<T: ?Sized> UnwindSafe for AliasableBox<T> where
    T: RefUnwindSafe
[src]

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> IntoAliasable for T where
    T: AliasableDeref
[src]

type Target = T

The aliasable type to convert to.

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.