Struct pin_api::boxed::PinBox
[−]
[src]
pub struct PinBox<T: ?Sized> { /* fields omitted */ }
Methods
impl<T> PinBox<T>
[src]
impl<T: ?Sized> PinBox<T>
[src]
pub fn as_pin<'a>(&'a mut self) -> Pin<'a, T>
[src]
pub unsafe fn get_mut<'a>(this: &'a mut PinBox<T>) -> &'a mut T
[src]
pub unsafe fn unpin(this: PinBox<T>) -> Box<T>
[src]
Trait Implementations
impl<T: ?Sized> From<Box<T>> for PinBox<T>
[src]
impl<T: Unpin + ?Sized> Into<Box<T>> for PinBox<T>
[src]
impl<T: ?Sized> Deref for PinBox<T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.
impl<T: Unpin + ?Sized> DerefMut for PinBox<T>
[src]
impl<T: Display + ?Sized> Display for PinBox<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Debug + ?Sized> Debug for PinBox<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more