pub struct HashHeader { /* private fields */ }
Expand description

Header for the hash values of the dumped data stream. This header is part of the main header and contains 0 or more hash values of the dumped data.\

Implementations

creates a new HashHeader by given values/hashes.

returns a reference to the underlying HashValues.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

the return value for decode_content(), decode_directly(), decode_for_key();

returns the identifier (=Magic bytes) of the header.

returns the version of the header.

encodes the header.

encodes the (header) value/object directly (= without key).

encodes a key to the (header) value/object.

decodes the content of the header.

returns the size of the encoded header (in bytes)

encodes a given key.

decodes the length of the header.

checks if the read identifier is valid for this header.

helper method to check, if the key is on position.

decodes the header directly.

decodes the header for the given key.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.