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 Span
s when a Fingerprint
without Span
s is
being requested)
Fields§
§hash_spans: bool
Trait 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<HashingControls> for HashingControls
impl PartialEq<HashingControls> for HashingControls
source§fn eq(&self, other: &HashingControls) -> bool
fn eq(&self, other: &HashingControls) -> bool
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§
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> Erased for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte