Struct simd_adler32::Adler32 [−][src]
A rolling hash generator type.
Implementations
impl Adler32
[src]
pub fn new() -> Self
[src]
Constructs a new Adler32
.
Examples
use simd_adler32::Adler32; let mut adler = Adler32::new();
Remarks
Potential overhead here due to runtime feature detection although in testing on 100k and 10k random byte arrays it was not really noticeable.
pub fn write(&mut self, data: &[u8])
[src]
Computes hash for supplied data and stores results in internal state.
pub fn finish(&self) -> u32
[src]
Returns the hash value for the values written so far.
Despite its name, the method does not reset the hasher’s internal state. Additional
writes will continue from the current value. If you need to start a fresh hash
value, you will have to use reset
.
pub fn reset(&mut self)
[src]
Resets the internal state.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Adler32
impl Send for Adler32
impl Sync for Adler32
impl Unpin for Adler32
impl UnwindSafe for Adler32
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,