pub struct CompressedShard {
pub shard_id: [u8; 32],
pub data: Vec<u8>,
pub stats: CompressionStats,
}Expand description
Compressed shard with ZKC encoding.
Fields§
§shard_id: [u8; 32]§data: Vec<u8>§stats: CompressionStatsTrait Implementations§
Source§impl Clone for CompressedShard
impl Clone for CompressedShard
Source§fn clone(&self) -> CompressedShard
fn clone(&self) -> CompressedShard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompressedShard
impl Debug for CompressedShard
Source§impl<'de> Deserialize<'de> for CompressedShard
impl<'de> Deserialize<'de> for CompressedShard
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CompressedShard
impl RefUnwindSafe for CompressedShard
impl Send for CompressedShard
impl Sync for CompressedShard
impl Unpin for CompressedShard
impl UnsafeUnpin for CompressedShard
impl UnwindSafe for CompressedShard
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