Trait pin_init::Init[][src]

pub trait Init<T, E>: Sized {
    fn __init<'a>(self, this: PinUninit<'a, T>) -> InitResult<'a, T, E>;

    fn map_err<E2, F>(self, f: F) -> MapErr<T, E, E2, Self, F>
    where
        F: FnOnce(E) -> E2
, { ... } }
Expand description

Initializer that can be used to safely pin-initialize T.

A blanket implementation impl<T, E> Init<T, E> for T is provided for all types, so a non-pinned value can be used directly for pin-initialization.

Required methods

Pin-initialize this.

Provided methods

Maps the error from E to E2.

Implementors