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§
fn try_pin_with<E, I>(init: I) -> Result<Pin<Self>, E>
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.