PtrTryPinWith

Trait PtrTryPinWith 

Source
pub trait PtrTryPinWith<T>: Deref<Target = T> + Sized {
    // Required method
    fn try_pin_with<E, I>(init: I) -> Result<Pin<Self>, E>
       where I: Init<T, E>,
             E: From<AllocError>;
}
Available on crate feature alloc_try_pin_with only.
Expand description

Pointer types that can be pin-newed.

Required Methods§

Source

fn try_pin_with<E, I>(init: I) -> Result<Pin<Self>, E>
where I: Init<T, E>, E: From<AllocError>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> PtrTryPinWith<T> for Box<T>

Source§

fn try_pin_with<E, I>(init: I) -> Result<Pin<Self>, E>
where I: Init<T, E>, E: From<AllocError>,

Source§

impl<T> PtrTryPinWith<T> for Rc<T>

Source§

fn try_pin_with<E, I>(init: I) -> Result<Pin<Self>, E>
where I: Init<T, E>, E: From<AllocError>,

Source§

impl<T> PtrTryPinWith<T> for Arc<T>

Source§

fn try_pin_with<E, I>(init: I) -> Result<Pin<Self>, E>
where I: Init<T, E>, E: From<AllocError>,

Implementors§