Initable

Trait Initable 

Source
pub trait Initable<'this>: Sized { }
Expand description

Types that can be constructed using init_pin.

This trait is not meant for manual implementation and consumption. You should use #[pin_init] attribute to implement this trait, and init_pin! macro to use.

This trait is implemented on some std types so they can also be constructed using init_pin!.

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<'this> Initable<'this> for PhantomPinned

Source§

impl<'this, T> Initable<'this> for Cell<T>

Source§

impl<'this, T> Initable<'this> for UnsafeCell<T>

Implementors§