pub struct PinInitClosure<F, T, E>(_, _);
Expand description

A closure initializer for pinned data.

Implementations

Creates a new Init from the given closure

Safety

The closure

  • returns Ok(()) iff it initialized every field of slot,
  • returns Err(err) iff it encountered an error and then cleaned slot, this means:
    • slot can be deallocated without UB ocurring,
    • slot does not need to be dropped,
    • slot is not partially initialized.

Trait Implementations

Initializes slot. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.