Struct storage_proofs_core::data::Data [−][src]
pub struct Data<'a> { /* fields omitted */ }
Expand description
A wrapper around data either on disk or a slice in memory, that can be dropped and read back into memory, to allow for better control of memory consumption.
Implementations
Recover the data.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Data<'a>
impl<'a> !UnwindSafe for Data<'a>
Blanket Implementations
pub fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error> where
T: FromByteSlice,
pub fn as_slice_of<T>(&self) -> Result<&[T], Error> where
T: FromByteSlice,
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V