Struct gzip_header::Crc [] [src]

pub struct Crc { /* fields omitted */ }

A wrapper struct containing a CRC checksum in the format used by gzip and the amount of bytes input to it mod 232.

Methods

impl Crc
[src]

Create a new empty CRC struct.

Return the current checksum value.

Return the number of bytes input.

Update the checksum and byte counter with the provided data.

Reset the checksum and byte counter.

Trait Implementations

impl Debug for Crc
[src]

Formats the value using the given formatter.

impl Clone for Crc
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Crc
[src]

impl Default for Crc
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Crc
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Crc
[src]

impl Hash for Crc
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Crc
[src]

Formats the value using the given formatter. Read more