pub struct Crc32(/* private fields */);Expand description
CRC32 checksumer.
Implementations§
Trait Implementations§
Source§impl BuildChecksumer for Crc32
impl BuildChecksumer for Crc32
Source§type Checksumer = Crc32
type Checksumer = Crc32
Type of the checksumer that will be created.
Source§fn build_checksumer(&self) -> <Crc32 as BuildChecksumer>::Checksumer
fn build_checksumer(&self) -> <Crc32 as BuildChecksumer>::Checksumer
Creates a new checksumer. Read more
Source§fn checksum_one(&self, src: &[u8]) -> u64
fn checksum_one(&self, src: &[u8]) -> u64
Calculates the checksum of a byte slice.
Source§impl CheapClone for Crc32
impl CheapClone for Crc32
Source§fn cheap_clone(&self) -> Self
fn cheap_clone(&self) -> Self
Returns a copy of the value.
Source§impl Checksumer for Crc32
impl Checksumer for Crc32
Auto Trait Implementations§
impl Freeze for Crc32
impl RefUnwindSafe for Crc32
impl Send for Crc32
impl Sync for Crc32
impl Unpin for Crc32
impl UnwindSafe for Crc32
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoAmong for T
impl<T> IntoAmong for T
Source§fn into_among_with<F>(self, into_left: F) -> Among<Self, Self, Self>
fn into_among_with<F>(self, into_left: F) -> Among<Self, Self, Self>
Converts
self into a Left variant of Among<Self, Self>
if into_left(&self) returns Some(true). Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more