Skip to main content

WrapPlace

Trait WrapPlace 

Source
pub unsafe trait WrapPlace<S>: PlaceWrapper
where S: Subplace<Source = Self::Inner>,
{ type Wrapped: Subplace<Source = Self>; // Required method fn wrap(subplace: S) -> Self::Wrapped; }
Expand description

place.field – Expose a modified subplace of the wrapped place.

Required Associated Types§

Source

type Wrapped: Subplace<Source = Self>

Required Methods§

Source

fn wrap(subplace: S) -> Self::Wrapped

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<S> WrapPlace<S> for Cell<S::Source>
where S: Subplace,

Source§

type Wrapped = TransmutedSubplace<S, Cell<<S as Subplace>::Source>, Cell<<S as Subplace>::Target>>

Source§

fn wrap(subplace: S) -> Self::Wrapped

Source§

impl<S> WrapPlace<S> for MaybeUninit<S::Source>
where S: Subplace, S::Source: Sized, S::Target: Sized,

Source§

impl<S> WrapPlace<S> for SyncUnsafeCell<S::Source>
where S: Subplace,

Source§

impl<S> WrapPlace<S> for UnsafeCell<S::Source>
where S: Subplace,

Implementors§