pub trait Persistable {
    // Provided methods
    fn as_bytes(&self) -> &[u8] 
       where Self: Sized { ... }
    fn from_bytes(src: *mut [u8]) -> *mut Self
       where Self: Sized { ... }
    fn from_bytes_ref(src: *const [u8]) -> &'static Self
       where Self: Sized { ... }
    fn adjust_from(&mut self, _other: &Self) { ... }
}

Provided Methods§

source

fn as_bytes(&self) -> &[u8] where Self: Sized,

source

fn from_bytes(src: *mut [u8]) -> *mut Selfwhere Self: Sized,

source

fn from_bytes_ref(src: *const [u8]) -> &'static Selfwhere Self: Sized,

source

fn adjust_from(&mut self, _other: &Self)

Used for object moves.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Persistable for bool

source§

impl Persistable for char

source§

impl Persistable for f32

source§

impl Persistable for f64

source§

impl Persistable for i8

source§

impl Persistable for i16

source§

impl Persistable for i32

source§

impl Persistable for i64

source§

impl Persistable for i128

source§

impl Persistable for isize

source§

impl Persistable for u8

source§

impl Persistable for u16

source§

impl Persistable for u32

source§

impl Persistable for u64

source§

impl Persistable for u128

source§

impl Persistable for usize

source§

impl<T> Persistable for (T, T)where T: Persistable,

source§

impl<T> Persistable for TypedIPtr<T>where T: Persistable,

Implementors§