Trait Transmittable

Source
pub trait Transmittable:
    Copy
    + Sized
    + Default {
    // Provided methods
    unsafe fn write(ptr: *mut Self, val: &Self) { ... }
    unsafe fn read(ptr: *const Self) -> Self { ... }
}

Provided Methods§

Source

unsafe fn write(ptr: *mut Self, val: &Self)

Source

unsafe fn read(ptr: *const Self) -> Self

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.

Implementors§

Source§

impl<T> Transmittable for T
where T: Copy + Sized + Default,