Struct byond_crc32::Crc32
source · [−]pub struct Crc32 { /* private fields */ }
Expand description
Represents an in-progress CRC-32/BYOND computation.
Implementations
sourceimpl Crc32
impl Crc32
sourcepub fn new_with_initial(crc: u32, len: u64) -> Self
pub fn new_with_initial(crc: u32, len: u64) -> Self
Creates a new CRC-32/BYOND computation hasher with the given initial checksum.
The len
parameter represents the amount of bytes consumed to
create the existing checksum, and is used when combining checksums.
Trait Implementations
sourceimpl Hasher for Crc32
impl Hasher for Crc32
1.26.0 · sourcefn write_u128(&mut self, i: u128)
fn write_u128(&mut self, i: u128)
Writes a single u128
into this hasher.
1.3.0 · sourcefn write_usize(&mut self, i: usize)
fn write_usize(&mut self, i: usize)
Writes a single usize
into this hasher.
1.26.0 · sourcefn write_i128(&mut self, i: i128)
fn write_i128(&mut self, i: i128)
Writes a single i128
into this hasher.
1.3.0 · sourcefn write_isize(&mut self, i: isize)
fn write_isize(&mut self, i: isize)
Writes a single isize
into this hasher.
impl Copy for Crc32
impl Eq for Crc32
impl StructuralEq for Crc32
impl StructuralPartialEq for Crc32
Auto Trait Implementations
impl RefUnwindSafe for Crc32
impl Send for Crc32
impl Sync for Crc32
impl Unpin for Crc32
impl UnwindSafe for Crc32
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more