[][src]Trait pin_convert::AsPinRef

pub trait AsPinRef<T: ?Sized> {
    fn as_pin_ref(&self) -> Pin<&T>;
}

Convert to a Pin<&T>.

The conversion is cheap.

Required methods

fn as_pin_ref(&self) -> Pin<&T>

Perform the conversion

Loading content...

Implementations on Foreign Types

impl<T> AsPinRef<<T as Deref>::Target> for Pin<T> where
    T: Deref
[src]

impl<'a, T: Unpin> AsPinRef<T> for &'a T[src]

Loading content...

Implementors

Loading content...