Type Alias Checksums

Source
pub type Checksums = ChecksumsV38;
Expand description

A vector of fletcher64 checksums, one per block. These are stored as a flat array of bytes for efficient deserialization.

Aliased Type§

struct Checksums { /* private fields */ }

Implementations§

Source§

impl Checksums

Source

pub fn fletcher(checksums: Vec<Checksum>) -> Self

Source

pub fn len(&self) -> usize

Source

pub fn maybe_as_ref(&self) -> Result<&[Checksum], Error>

Source

pub fn offset_by(&self, amount: usize) -> Self

Source

pub fn shrunk(&self, len: usize) -> Self

Trait Implementations

Source§

impl Clone for ChecksumsV38

Source§

fn clone(&self) -> ChecksumsV38

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChecksumsV38

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ChecksumsV38

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ChecksumsV38

Source§

fn eq(&self, other: &ChecksumsV38) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ChecksumsV38

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TypeFingerprint for ChecksumsV38

Source§

impl StructuralPartialEq for ChecksumsV38