Struct zarrs::array::codec::StoragePartialDecoder
source · pub struct StoragePartialDecoder { /* private fields */ }
Expand description
A ReadableStorage
store value partial decoder.
Implementations§
source§impl StoragePartialDecoder
impl StoragePartialDecoder
sourcepub fn new(storage: ReadableStorage, key: StoreKey) -> Self
pub fn new(storage: ReadableStorage, key: StoreKey) -> Self
Create a new storage partial decoder.
Trait Implementations§
source§impl BytesPartialDecoderTraits for StoragePartialDecoder
impl BytesPartialDecoderTraits for StoragePartialDecoder
source§fn partial_decode(
&self,
decoded_regions: &[ByteRange],
_options: &CodecOptions
) -> Result<Option<Vec<Vec<u8>>>, CodecError>
fn partial_decode( &self, decoded_regions: &[ByteRange], _options: &CodecOptions ) -> Result<Option<Vec<Vec<u8>>>, CodecError>
Partially decode bytes. Read more
source§fn partial_decode_concat(
&self,
decoded_regions: &[ByteRange],
options: &CodecOptions
) -> Result<Option<Vec<u8>>, CodecError>
fn partial_decode_concat( &self, decoded_regions: &[ByteRange], options: &CodecOptions ) -> Result<Option<Vec<u8>>, CodecError>
Partially decode bytes and concatenate. Read more
source§fn decode(&self, options: &CodecOptions) -> Result<MaybeBytes, CodecError>
fn decode(&self, options: &CodecOptions) -> Result<MaybeBytes, CodecError>
Decode all bytes. Read more
Auto Trait Implementations§
impl Freeze for StoragePartialDecoder
impl !RefUnwindSafe for StoragePartialDecoder
impl Send for StoragePartialDecoder
impl Sync for StoragePartialDecoder
impl Unpin for StoragePartialDecoder
impl !UnwindSafe for StoragePartialDecoder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more