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§

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

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

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

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

Used for object moves.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl Persistable for bool

§

impl Persistable for char

§

impl Persistable for f32

§

impl Persistable for f64

§

impl Persistable for i8

§

impl Persistable for i16

§

impl Persistable for i32

§

impl Persistable for i64

§

impl Persistable for i128

§

impl Persistable for isize

§

impl Persistable for u8

§

impl Persistable for u16

§

impl Persistable for u32

§

impl Persistable for u64

§

impl Persistable for u128

§

impl Persistable for usize

§

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

§

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

Implementors§

§

impl Persistable for IPtr

§

impl Persistable for CachingPermitted

§

impl Persistable for PCuckooFilter

§

impl Persistable for PString

§

impl Persistable for SectionMarker

§

impl<K, V> Persistable for PHashMap<K, V>where K: Persistable, V: Persistable,

§

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

§

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