Skip to main content

PlaceWrite

Trait PlaceWrite 

Source
pub unsafe trait PlaceWrite<P>
where P: Projection + ?Sized, Self: HasPlace<Target = P::Source>,
{ // Required method unsafe fn write(ptr: *mut Self, p: &P, x: P::Target) where P::Target: Sized; }
Expand description

Write to a subplace.

Required Methods§

Source

unsafe fn write(ptr: *mut Self, p: &P, x: P::Target)
where P::Target: Sized,

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<P: Projection + ?Sized> PlaceWrite<P> for *mut P::Source

Source§

unsafe fn write(ptr: *mut Self, p: &P, x: P::Target)
where P::Target: Sized,

Implementors§