pub struct HashingControls {
pub hash_spans: bool,
}
Expand description
Controls what data we do or not not hash.
Whenever a HashStable
implementation caches its
result, it needs to include HashingControls
as part
of the key, to ensure that is 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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HashingControls) -> bool
fn ne(&self, other: &HashingControls) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<'a, T> Captures<'a> for T where
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