StructuralInitPin

Trait StructuralInitPin 

Source
pub trait StructuralInitPin<'b> { }
Expand description

Types that can be structurally initialized in a pinned place.

This trait is automatically implemented for types that derive InitPin. It provides a method to structurally initialize the type in a pinned context.

Users should not implement this trait manually. It is intended to be automatically derived to ensure correct behavior.

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<'b> StructuralInitPin<'b> for PhantomPinned

Source§

impl<'b, T: 'b + ?Sized> StructuralInitPin<'b> for Cell<T>

Source§

impl<'b, T: 'b + ?Sized> StructuralInitPin<'b> for UnsafeCell<T>

Implementors§