pub struct HashingControls {
pub hash_spans: bool,
pub node_id_hashing_mode: NodeIdHashingMode,
}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 Spans when a Fingeprint without Spans is
being requested)
Fields
hash_spans: boolnode_id_hashing_mode: NodeIdHashingModeTrait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Mutably borrows from an owned value. Read more
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: 2 bytes