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
sourceimpl Clone for HashingControls
impl Clone for HashingControls
sourcefn clone(&self) -> HashingControls
fn clone(&self) -> HashingControls
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HashingControls
impl Debug for HashingControls
sourceimpl Hash for HashingControls
impl Hash for HashingControls
sourceimpl PartialEq<HashingControls> for HashingControls
impl PartialEq<HashingControls> for HashingControls
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
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