[−][src]Struct aliasable::boxed::AliasableBox
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]
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,
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]
T: Debug,
impl<T: ?Sized> Deref for AliasableBox<T>
[src]
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]
T: Send,
impl<T: ?Sized> StableDeref for AliasableBox<T>
[src]
impl<T: ?Sized> Sync for AliasableBox<T> where
T: Sync,
[src]
T: Sync,
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for AliasableBox<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T: ?Sized> Unpin for AliasableBox<T>
[src]
impl<T: ?Sized> UnwindSafe for AliasableBox<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
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> IntoAliasable for T where
T: AliasableDeref,
[src]
T: AliasableDeref,
type Target = T
The aliasable type to convert to.
pub fn into_aliasable(self) -> <T as IntoAliasable>::Target
[src]
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>,