Trait object_lib::persistable::Persistable
source · 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,
sourcefn adjust_from(&mut self, _other: &Self)
fn adjust_from(&mut self, _other: &Self)
Used for object moves.
Object Safety§
This trait is not object safe.