Trait TransmuteBack

Source
pub trait TransmuteBack: ToBytes {
    // Required method
    unsafe fn transmute_back(ptr: *const u8) -> Self;
}

Required Methods§

Source

unsafe fn transmute_back(ptr: *const u8) -> 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.

Implementations on Foreign Types§

Source§

impl TransmuteBack for isize

Source§

unsafe fn transmute_back(ptr: *const u8) -> Self

Source§

impl TransmuteBack for usize

Source§

unsafe fn transmute_back(ptr: *const u8) -> Self

Source§

impl<T> TransmuteBack for *const T

Source§

unsafe fn transmute_back(ptr: *const u8) -> Self

Source§

impl<T> TransmuteBack for *mut T

Source§

unsafe fn transmute_back(ptr: *const u8) -> Self

Source§

impl<T: TransmuteBack> TransmuteBack for Option<T>
where Self: ToBytes,

Source§

unsafe fn transmute_back(ptr: *const u8) -> Self

Implementors§