Struct hammersbald::format::IndexedData
source · Expand description
data accessible with a key
Fields
key: &'e [u8]
key
data: Data<'e>
data
Implementations
sourceimpl<'e> IndexedData<'e>
impl<'e> IndexedData<'e>
sourcepub fn new(key: &'e [u8], data: Data<'e>) -> IndexedData<'e>
pub fn new(key: &'e [u8], data: Data<'e>) -> IndexedData<'e>
new indexed data
sourcepub fn deserialize(slice: &'e [u8]) -> IndexedData<'e>
pub fn deserialize(slice: &'e [u8]) -> IndexedData<'e>
deserialize from storage
Auto Trait Implementations
impl<'e> RefUnwindSafe for IndexedData<'e>
impl<'e> Send for IndexedData<'e>
impl<'e> Sync for IndexedData<'e>
impl<'e> Unpin for IndexedData<'e>
impl<'e> UnwindSafe for IndexedData<'e>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more