pub struct HashingControls {
pub hash_spans: bool,
}Expand description
Controls what data we do or do not hash.
Whenever a HashStable implementation caches its
result, it needs to include HashingControls as part
of the key, to ensure that it does not produce an incorrect
result (for example, using a Fingerprint produced while
hashing Spans when a Fingerprint without Spans is
being requested)
Fields§
§hash_spans: boolTrait Implementations§
source§impl Clone for HashingControls
impl Clone for HashingControls
source§fn clone(&self) -> HashingControls
fn clone(&self) -> HashingControls
Returns a copy 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 moresource§impl Debug for HashingControls
impl Debug for HashingControls
source§impl Hash for HashingControls
impl Hash for HashingControls
source§impl PartialEq for HashingControls
impl PartialEq for HashingControls
source§fn eq(&self, other: &HashingControls) -> bool
fn eq(&self, other: &HashingControls) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for HashingControls
impl StructuralEq for HashingControls
impl StructuralPartialEq for HashingControls
Auto Trait Implementations§
impl RefUnwindSafe for HashingControls
impl Send for HashingControls
impl Sync for HashingControls
impl Unpin for HashingControls
impl UnwindSafe for HashingControls
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.