pub struct Fingerprinter { /* private fields */ }Expand description
Implementations§
Source§impl Fingerprinter
impl Fingerprinter
Sourcepub fn into_fingerprint(self) -> Fingerprint
pub fn into_fingerprint(self) -> Fingerprint
Finalize and produce the fingerprint.
Sourcepub fn with_bytes(self, bytes: &[u8]) -> Self
pub fn with_bytes(self, bytes: &[u8]) -> Self
Add bytes to the hash.
Sourcepub fn write_bytes(&mut self, bytes: &[u8])
pub fn write_bytes(&mut self, bytes: &[u8])
Add bytes to the hash (mutable).
Sourcepub fn with_usize(self, n: usize) -> Self
pub fn with_usize(self, n: usize) -> Self
Add a usize to the hash.
Sourcepub fn write_usize(&mut self, n: usize)
pub fn write_usize(&mut self, n: usize)
Add a usize to the hash (mutable).
Sourcepub fn write_bool(&mut self, b: bool)
pub fn write_bool(&mut self, b: bool)
Add a bool to the hash (mutable).
Sourcepub fn with_option_str(self, opt: Option<&str>) -> Self
pub fn with_option_str(self, opt: Option<&str>) -> Self
Add an optional string to the hash.
Sourcepub fn write_option_str(&mut self, opt: Option<&str>)
pub fn write_option_str(&mut self, opt: Option<&str>)
Add an optional string to the hash (mutable).
Sourcepub fn with_fingerprint(self, fp: &Fingerprint) -> Self
pub fn with_fingerprint(self, fp: &Fingerprint) -> Self
Add another fingerprint to the hash.
Sourcepub fn write_fingerprint(&mut self, fp: &Fingerprint)
pub fn write_fingerprint(&mut self, fp: &Fingerprint)
Add another fingerprint to the hash (mutable).
Trait Implementations§
Source§impl Clone for Fingerprinter
impl Clone for Fingerprinter
Source§fn clone(&self) -> Fingerprinter
fn clone(&self) -> Fingerprinter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Fingerprinter
impl RefUnwindSafe for Fingerprinter
impl Send for Fingerprinter
impl Sync for Fingerprinter
impl Unpin for Fingerprinter
impl UnsafeUnpin for Fingerprinter
impl UnwindSafe for Fingerprinter
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> 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