enumstd.hash.auto_hash.HashStrategy[src]

Describes how pointer types should be hashed.

Fields

Shallow

Do not follow pointers, only hash their value.

Deep

Follow pointers, hash the pointee content. Only dereferences one level, ie. it is changed into .Shallow when a pointer type is encountered.

DeepRecursive

Follow pointers, hash the pointee content. Dereferences all pointers encountered. Assumes no cycle.

Source Code

Source code
pub const HashStrategy = enum {
    /// Do not follow pointers, only hash their value.
    Shallow,

    /// Follow pointers, hash the pointee content.
    /// Only dereferences one level, ie. it is changed into .Shallow when a
    /// pointer type is encountered.
    Deep,

    /// Follow pointers, hash the pointee content.
    /// Dereferences all pointers encountered.
    /// Assumes no cycle.
    DeepRecursive,
}