Trait otter_api_tests::shapelib::Hash1.0.0[][src]

pub trait Hash {
    pub fn hash<H>(&self, state: &mut H)
    where
        H: Hasher
; pub fn hash_slice<H>(data: &[Self], state: &mut H)
    where
        H: Hasher
, { ... } }

A hashable type.

Types implementing Hash are able to be hashed with an instance of Hasher.

Implementing Hash

You can derive Hash with #[derive(Hash)] if all fields implement Hash. The resulting hash will be the combination of the values from calling hash on each field.

#[derive(Hash)]
struct Rustacean {
    name: String,
    country: String,
}

If you need more control over how a value is hashed, you can of course implement the Hash trait yourself:

use std::hash::{Hash, Hasher};

struct Person {
    id: u32,
    name: String,
    phone: u64,
}

impl Hash for Person {
    fn hash<H: Hasher>(&self, state: &mut H) {
        self.id.hash(state);
        self.phone.hash(state);
    }
}

Hash and Eq

When implementing both Hash and Eq, it is important that the following property holds:

k1 == k2 -> hash(k1) == hash(k2)

In other words, if two keys are equal, their hashes must also be equal. HashMap and HashSet both rely on this behavior.

Thankfully, you won’t need to worry about upholding this property when deriving both Eq and Hash with #[derive(PartialEq, Eq, Hash)].

Required methods

pub fn hash<H>(&self, state: &mut H) where
    H: Hasher
[src]

Feeds this value into the given Hasher.

Examples

use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};

let mut hasher = DefaultHasher::new();
7920.hash(&mut hasher);
println!("Hash is {:x}!", hasher.finish());
Loading content...

Provided methods

pub fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher.

Examples

use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};

let mut hasher = DefaultHasher::new();
let numbers = [6, 28, 496, 8128];
Hash::hash_slice(&numbers, &mut hasher);
println!("Hash is {:x}!", hasher.finish());
Loading content...

Implementations on Foreign Types

impl Hash for OsString[src]

impl<'_> Hash for PrefixComponent<'_>[src]

impl<'a> Hash for Component<'a>[src]

impl Hash for Ipv6MulticastScope[src]

impl Hash for CString[src]

impl Hash for IpAddr[src]

impl Hash for SocketAddr[src]

impl Hash for Ipv6Addr[src]

impl Hash for SocketAddrV6[src]

impl Hash for Ipv4Addr[src]

impl Hash for SocketAddrV4[src]

impl Hash for Path[src]

impl<'a> Hash for Prefix<'a>[src]

impl Hash for CStr[src]

impl<Ret, A> Hash for unsafe extern "C" fn(A, ...) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, H) -> Ret[src]

impl<Ret, A, B> Hash for unsafe fn(A, B) -> Ret[src]

impl Hash for bool[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H> Hash for extern "C" fn(A, B, C, D, E, F, G, H) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G> Hash for extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret[src]

impl<Ret, A> Hash for unsafe fn(A) -> Ret[src]

impl<Ret, A, B, C, D, E, F> Hash for extern "C" fn(A, B, C, D, E, F) -> Ret[src]

impl<A> Hash for (A,) where
    A: Hash + ?Sized
[src]

impl<A, B, C, D, E, F> Hash for (A, B, C, D, E, F) where
    C: Hash,
    B: Hash,
    E: Hash,
    A: Hash,
    F: Hash + ?Sized,
    D: Hash
[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Hash for fn(A, B, C, D, E, F, G, H, I, J) -> Ret[src]

impl<Ret> Hash for unsafe fn() -> Ret[src]

impl<Ret, A, B, C, D> Hash for extern "C" fn(A, B, C, D) -> Ret[src]

impl<T, const N: usize> Hash for [T; N] where
    T: Hash
[src]

impl<T> Hash for *mut T where
    T: ?Sized
[src]

impl<Ret, A> Hash for extern "C" fn(A, ...) -> Ret[src]

impl<A, B, C> Hash for (A, B, C) where
    C: Hash + ?Sized,
    B: Hash,
    A: Hash
[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Hash for extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret[src]

impl<Ret> Hash for unsafe extern "C" fn() -> Ret[src]

impl<Ret, A, B, C, D> Hash for fn(A, B, C, D) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Hash for unsafe fn(A, B, C, D, E, F, G, H, I, J) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Hash for extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret[src]

impl Hash for ()[src]

impl Hash for u8[src]

impl Hash for i64[src]

impl<Ret, A, B, C> Hash for fn(A, B, C) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H> Hash for unsafe fn(A, B, C, D, E, F, G, H) -> Ret[src]

impl<Ret> Hash for extern "C" fn() -> Ret[src]

impl<Ret, A> Hash for unsafe extern "C" fn(A) -> Ret[src]

impl<'_, T> Hash for &'_ T where
    T: Hash + ?Sized
[src]

impl<Ret, A, B, C, D, E, F, G, H> Hash for fn(A, B, C, D, E, F, G, H) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Hash for fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret[src]

impl<A, B, C, D, E, F, G, H, I, J> Hash for (A, B, C, D, E, F, G, H, I, J) where
    C: Hash,
    B: Hash,
    E: Hash,
    A: Hash,
    I: Hash,
    F: Hash,
    G: Hash,
    D: Hash,
    H: Hash,
    J: Hash + ?Sized
[src]

impl<Ret, A, B, C, D, E, F, G> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L> Hash for (A, B, C, D, E, F, G, H, I, J, K, L) where
    C: Hash,
    L: Hash + ?Sized,
    B: Hash,
    E: Hash,
    A: Hash,
    K: Hash,
    I: Hash,
    F: Hash,
    G: Hash,
    D: Hash,
    H: Hash,
    J: Hash
[src]

impl<Ret, A, B, C, D, E, F> Hash for unsafe extern "C" fn(A, B, C, D, E, F, ...) -> Ret[src]

impl<Ret> Hash for fn() -> Ret[src]

impl<Ret, A, B, C, D, E> Hash for unsafe extern "C" fn(A, B, C, D, E) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret[src]

impl<A, B, C, D, E, F, G, H, I, J, K> Hash for (A, B, C, D, E, F, G, H, I, J, K) where
    C: Hash,
    B: Hash,
    E: Hash,
    A: Hash,
    K: Hash + ?Sized,
    I: Hash,
    F: Hash,
    G: Hash,
    D: Hash,
    H: Hash,
    J: Hash
[src]

impl<Ret, A, B, C, D, E> Hash for unsafe fn(A, B, C, D, E) -> Ret[src]

impl<T> Hash for *const T where
    T: ?Sized
[src]

impl Hash for str[src]

impl<A, B, C, D, E> Hash for (A, B, C, D, E) where
    C: Hash,
    B: Hash,
    E: Hash + ?Sized,
    A: Hash,
    D: Hash
[src]

impl Hash for i128[src]

impl<Ret, A> Hash for fn(A) -> Ret[src]

impl<Ret, A, B, C, D, E> Hash for unsafe extern "C" fn(A, B, C, D, E, ...) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Hash for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret[src]

impl<Ret, A, B, C, D, E, F> Hash for unsafe extern "C" fn(A, B, C, D, E, F) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Hash for unsafe fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret[src]

impl Hash for u32[src]

impl<Ret, A, B, C, D> Hash for unsafe extern "C" fn(A, B, C, D) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G) -> Ret[src]

impl<Ret, A, B, C, D> Hash for unsafe extern "C" fn(A, B, C, D, ...) -> Ret[src]

impl Hash for i32[src]

impl Hash for u64[src]

impl<Ret, A, B, C, D> Hash for extern "C" fn(A, B, C, D, ...) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G> Hash for fn(A, B, C, D, E, F, G) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Hash for extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret[src]

impl<Ret, A, B, C> Hash for extern "C" fn(A, B, C) -> Ret[src]

impl Hash for usize[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret[src]

impl<A, B> Hash for (A, B) where
    B: Hash + ?Sized,
    A: Hash
[src]

impl<Ret, A, B, C> Hash for unsafe extern "C" fn(A, B, C, ...) -> Ret[src]

impl<Ret, A, B, C, D, E> Hash for fn(A, B, C, D, E) -> Ret[src]

impl<Ret, A, B> Hash for fn(A, B) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Hash for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret[src]

impl<Ret, A, B, C, D> Hash for unsafe fn(A, B, C, D) -> Ret[src]

impl<Ret, A, B> Hash for extern "C" fn(A, B, ...) -> Ret[src]

impl<Ret, A, B, C> Hash for unsafe fn(A, B, C) -> Ret[src]

impl<'_, T> Hash for &'_ mut T where
    T: Hash + ?Sized
[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Hash for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Hash for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret[src]

impl<T> Hash for [T] where
    T: Hash
[src]

impl Hash for isize[src]

impl<Ret, A, B, C, D, E, F, G, H> Hash for extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret[src]

impl<Ret, A, B, C> Hash for extern "C" fn(A, B, C, ...) -> Ret[src]

impl<A, B, C, D, E, F, G> Hash for (A, B, C, D, E, F, G) where
    C: Hash,
    B: Hash,
    E: Hash,
    A: Hash,
    F: Hash,
    G: Hash + ?Sized,
    D: Hash
[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G> Hash for unsafe fn(A, B, C, D, E, F, G) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret[src]

impl Hash for u16[src]

impl<Ret, A, B> Hash for extern "C" fn(A, B) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Hash for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret[src]

impl<Ret, A, B, C, D, E, F> Hash for unsafe fn(A, B, C, D, E, F) -> Ret[src]

impl<Ret, A, B, C, D, E, F> Hash for fn(A, B, C, D, E, F) -> Ret[src]

impl Hash for char[src]

impl<Ret, A> Hash for extern "C" fn(A) -> Ret[src]

impl<Ret, A, B, C, D, E, F> Hash for extern "C" fn(A, B, C, D, E, F, ...) -> Ret[src]

impl<Ret, A, B, C, D, E> Hash for extern "C" fn(A, B, C, D, E) -> Ret[src]

impl Hash for u128[src]

impl<Ret, A, B, C, D, E, F, G> Hash for extern "C" fn(A, B, C, D, E, F, G) -> Ret[src]

impl Hash for i8[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Hash for extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret[src]

impl<Ret, A, B, C> Hash for unsafe extern "C" fn(A, B, C) -> Ret[src]

impl<A, B, C, D> Hash for (A, B, C, D) where
    C: Hash,
    B: Hash,
    A: Hash,
    D: Hash + ?Sized
[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Hash for fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret[src]

impl<Ret, A, B> Hash for unsafe extern "C" fn(A, B, ...) -> Ret[src]

impl<Ret, A, B, C, D, E> Hash for extern "C" fn(A, B, C, D, E, ...) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Hash for fn(A, B, C, D, E, F, G, H, I) -> Ret[src]

impl<A, B, C, D, E, F, G, H> Hash for (A, B, C, D, E, F, G, H) where
    C: Hash,
    B: Hash,
    E: Hash,
    A: Hash,
    F: Hash,
    G: Hash,
    D: Hash,
    H: Hash + ?Sized
[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Hash for unsafe fn(A, B, C, D, E, F, G, H, I) -> Ret[src]

impl Hash for i16[src]

impl Hash for ![src]

impl<A, B, C, D, E, F, G, H, I> Hash for (A, B, C, D, E, F, G, H, I) where
    C: Hash,
    B: Hash,
    E: Hash,
    A: Hash,
    I: Hash + ?Sized,
    F: Hash,
    G: Hash,
    D: Hash,
    H: Hash
[src]

impl<Ret, A, B> Hash for unsafe extern "C" fn(A, B) -> Ret[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Hash for unsafe fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret[src]

impl<T, A> Hash for Box<T, A> where
    T: Hash + ?Sized,
    A: Allocator
[src]

impl Hash for String[src]

impl<T> Hash for Rc<T> where
    T: Hash + ?Sized
[src]

impl<T> Hash for LinkedList<T> where
    T: Hash
[src]

impl<T, A> Hash for Vec<T, A> where
    T: Hash,
    A: Allocator
[src]

impl<Sep, T> Hash for StringWithSeparator<Sep, T> where
    T: Hash,
    Sep: Hash
[src]

impl Hash for SpaceSeparator[src]

impl Hash for CommaSeparator[src]

impl Hash for Tm[src]

impl Hash for Timespec[src]

impl Hash for Match

impl Hash for Duration[src]

impl<T> Hash for DebugAbbrevOffset<T> where
    T: Hash

impl Hash for DwUt

impl Hash for DwIdx

impl<T> Hash for DebugMacroOffset<T> where
    T: Hash

impl Hash for DwVirtuality

impl Hash for DwRle

impl Hash for DwOp

impl Hash for DwAccess

impl Hash for DwAddr

impl Hash for DwEnd

impl<T> Hash for DebugFrameOffset<T> where
    T: Hash

impl Hash for DwLns

impl Hash for DwMacro

impl Hash for DwId

impl<T> Hash for RangeListsOffset<T> where
    T: Hash

impl Hash for Register

impl<T> Hash for UnitOffset<T> where
    T: Hash

impl<T> Hash for DebugInfoOffset<T> where
    T: Hash

impl Hash for DwoId

impl Hash for DwChildren

impl<T> Hash for EhFrameOffset<T> where
    T: Hash

impl Hash for DwLle

impl<T> Hash for DebugMacinfoOffset<T> where
    T: Hash

impl Hash for DwInl

impl Hash for DwOrd

impl<'input, Endian> Hash for EndianSlice<'input, Endian> where
    Endian: Hash + Endianity, 

impl Hash for Format

impl Hash for DwTag

impl Hash for DwForm

impl Hash for RunTimeEndian

impl<R> Hash for Expression<R> where
    R: Hash + Reader, 

impl Hash for DwCfa

impl Hash for DwDsc

impl Hash for DwEhPe

impl<T> Hash for LocationListsOffset<T> where
    T: Hash

impl Hash for DwVis

impl Hash for DwLnct

impl<T> Hash for DebugTypesOffset<T> where
    T: Hash

impl Hash for DebugTypeSignature

impl<R> Hash for LocationListEntry<R> where
    R: Hash + Reader, 

impl Hash for LittleEndian

impl Hash for BigEndian

impl Hash for DwLang

impl Hash for DwAt

impl Hash for DwAte

impl Hash for LineEncoding

impl Hash for DwCc

impl Hash for DwLne

impl Hash for DwDefaulted

impl<T> Hash for UnitSectionOffset<T> where
    T: Hash

impl Hash for Range

impl Hash for DwDs

impl Hash for SectionId

impl Hash for Encoding

impl<E> Hash for I32Bytes<E> where
    E: Hash + Endian, 

impl Hash for SymbolSection

impl<E> Hash for U16Bytes<E> where
    E: Hash + Endian, 

impl<E> Hash for I64Bytes<E> where
    E: Hash + Endian, 

impl<E> Hash for U32Bytes<E> where
    E: Hash + Endian, 

impl Hash for LittleEndian

impl Hash for CompressionFormat

impl Hash for SectionIndex

impl<'data> Hash for ObjectMapEntry<'data>

impl<'data> Hash for SymbolMapName<'data>

impl<'data> Hash for CompressedData<'data>

impl Hash for SymbolIndex

impl Hash for Architecture

impl Hash for RelocationTarget

impl Hash for BinaryFormat

impl<E> Hash for U64Bytes<E> where
    E: Hash + Endian, 

impl Hash for AddressSize

impl Hash for Endianness

impl Hash for ArchiveKind

impl Hash for BigEndian

impl<E> Hash for I16Bytes<E> where
    E: Hash + Endian, 

impl Hash for TDEFLStatus

impl Hash for MZFlush

impl Hash for MZStatus

impl Hash for DataFormat

impl Hash for CompressionLevel

impl Hash for CompressionStrategy

impl Hash for MZError

impl Hash for StreamResult

impl Hash for TINFLStatus

impl Hash for TDEFLFlush

impl Hash for Color[src]

impl Hash for Style[src]

impl<T> Hash for Paint<T> where
    T: Hash
[src]

impl Hash for Op

impl Hash for FileTime

impl Hash for Token[src]

impl Hash for WatchDescriptor

impl Hash for EventMask

impl Hash for WatchMask

impl Hash for Handle

impl<A> Hash for SmallVec<A> where
    A: Array,
    <A as Array>::Item: Hash

impl Hash for BigEndian

impl Hash for LittleEndian

impl Hash for ParseError[src]

impl Hash for OpaqueOrigin[src]

impl<S> Hash for Host<S> where
    S: Hash
[src]

impl Hash for Origin[src]

impl<A> Hash for TinyVec<A> where
    A: Array,
    <A as Array>::Item: Hash

impl<'s, T> Hash for SliceVec<'s, T> where
    T: Hash

impl<A> Hash for ArrayVec<A> where
    A: Array,
    <A as Array>::Item: Hash

impl Hash for Pattern[src]

impl Hash for MatchOptions[src]

impl<'i, R> Hash for Pair<'i, R> where
    R: Hash
[src]

impl<'i, R> Hash for Token<'i, R> where
    R: Hash
[src]

impl<R> Hash for Error<R> where
    R: Hash
[src]

impl Hash for InputLocation[src]

impl<'i, R> Hash for Pairs<'i, R> where
    R: Hash
[src]

impl<'i> Hash for Span<'i>[src]

impl<R> Hash for ErrorVariant<R> where
    R: Hash
[src]

impl<'i> Hash for Position<'i>[src]

impl Hash for LineColLocation[src]

impl<S> Hash for Host<S> where
    S: Hash
[src]

impl Hash for OpaqueOrigin[src]

impl Hash for Origin[src]

impl Hash for Url[src]

URLs hash like their serialization.

impl Hash for WordBreak

impl Hash for GraphemeClusterBreak

impl Hash for SentenceBreak

impl Hash for UnicodeVersion

impl<V> Hash for VecMap<V> where
    V: Hash

Loading content...

Implementors

impl Hash for AccountScope[src]

impl Hash for LinkKind[src]

impl Hash for OccDisplacement[src]

impl Hash for OccultationKindAlwaysOk[src]

impl Hash for OldNewIndex[src]

impl Hash for TablePermission[src]

impl Hash for Level[src]

impl Hash for LevelFilter[src]

impl Hash for Month[src]

impl Hash for Weekday[src]

impl Hash for Tz

impl Hash for Target

impl Hash for WriteStyle

impl Hash for otter_api_tests::imports::failure::_core::sync::atomic::Ordering[src]

impl Hash for Type

impl Hash for FlockArg

impl Hash for PosixFadviseAdvice

impl Hash for AioCancelStat

impl Hash for AioFsyncMode

impl Hash for LioMode

impl Hash for LioOpcode

impl Hash for EpollOp

impl Hash for MmapAdvise

impl Hash for Event

impl Hash for Request

impl Hash for QuotaFmt

impl Hash for QuotaType

impl Hash for RebootMode

impl Hash for SigHandler

impl Hash for SigevNotify

impl Hash for SigmaskHow

impl Hash for Signal

impl Hash for AddressFamily

impl Hash for InetAddr

impl Hash for otter_api_tests::imports::nix::sys::socket::IpAddr

impl Hash for Shutdown

impl Hash for SockAddr

impl Hash for SockProtocol

impl Hash for BaudRate

impl Hash for FlowArg

impl Hash for FlushArg

impl Hash for SetArg

impl Hash for SpecialCharacterIndices

impl Hash for otter_api_tests::imports::nix::sys::timerfd::ClockId

impl Hash for WaitStatus

impl Hash for PathconfVar

impl Hash for SysconfVar

impl Hash for ErrorKind[src]

impl Hash for Infallible1.44.0[src]

impl Hash for otter_api_tests::shapelib::Ordering[src]

impl Hash for otter_api_tests::fmt::Error[src]

impl Hash for FileType1.1.0[src]

impl Hash for otter_api_tests::imports::chrono::Duration[src]

impl Hash for FixedOffset[src]

impl Hash for NaiveDate[src]

impl Hash for NaiveDateTime[src]

NaiveDateTime can be used as a key to the hash maps (in principle).

Practically this also takes account of fractional seconds, so it is not recommended. (For the obvious reason this also distinguishes leap seconds from non-leap seconds.)

impl Hash for NaiveTime[src]

NaiveTime can be used as a key to the hash maps (in principle).

Practically this also takes account of fractional seconds, so it is not recommended. (For the obvious reason this also distinguishes leap seconds from non-leap seconds.)

impl Hash for TypeId[src]

impl Hash for PhantomPinned1.33.0[src]

impl Hash for NonZeroI81.34.0[src]

impl Hash for NonZeroI161.34.0[src]

impl Hash for NonZeroI321.34.0[src]

impl Hash for NonZeroI641.34.0[src]

impl Hash for NonZeroI1281.34.0[src]

impl Hash for NonZeroIsize1.34.0[src]

impl Hash for NonZeroU81.28.0[src]

impl Hash for NonZeroU161.28.0[src]

impl Hash for NonZeroU321.28.0[src]

impl Hash for NonZeroU641.28.0[src]

impl Hash for NonZeroU1281.28.0[src]

impl Hash for RangeFull[src]

impl Hash for NoneError[src]

impl Hash for FsStats[src]

impl Hash for otter_api_tests::imports::glob::MatchOptions[src]

impl Hash for otter_api_tests::imports::glob::Pattern[src]

impl Hash for Dl_info

impl Hash for Elf32_Chdr

impl Hash for Elf32_Ehdr

impl Hash for Elf32_Phdr

impl Hash for Elf32_Shdr

impl Hash for Elf32_Sym

impl Hash for Elf64_Chdr

impl Hash for Elf64_Ehdr

impl Hash for Elf64_Phdr

impl Hash for Elf64_Shdr

impl Hash for Elf64_Sym

impl Hash for __c_anonymous_sockaddr_can_j1939

impl Hash for __c_anonymous_sockaddr_can_tp

impl Hash for __exit_status

impl Hash for __timeval

impl Hash for _libc_fpstate

impl Hash for _libc_fpxreg

impl Hash for _libc_xmmreg

impl Hash for addrinfo

impl Hash for af_alg_iv

impl Hash for aiocb

impl Hash for arpd_request

impl Hash for arphdr

impl Hash for arpreq

impl Hash for arpreq_old

impl Hash for can_filter

impl Hash for cpu_set_t

impl Hash for dirent64

impl Hash for dirent

impl Hash for dl_phdr_info

impl Hash for dqblk

impl Hash for epoll_event

impl Hash for fanotify_event_metadata

impl Hash for fanotify_response

impl Hash for fd_set

impl Hash for ff_condition_effect

impl Hash for ff_constant_effect

impl Hash for ff_effect

impl Hash for ff_envelope

impl Hash for ff_periodic_effect

impl Hash for ff_ramp_effect

impl Hash for ff_replay

impl Hash for ff_rumble_effect

impl Hash for ff_trigger

impl Hash for flock64

impl Hash for flock

impl Hash for fsid_t

impl Hash for genlmsghdr

impl Hash for glob64_t

impl Hash for glob_t

impl Hash for group

impl Hash for hostent

impl Hash for if_nameindex

impl Hash for ifaddrs

impl Hash for in6_addr

impl Hash for in6_pktinfo

impl Hash for in6_rtmsg

impl Hash for in_addr

impl Hash for in_pktinfo

impl Hash for inotify_event

impl Hash for input_absinfo

impl Hash for input_event

impl Hash for input_id

impl Hash for input_keymap_entry

impl Hash for input_mask

impl Hash for iovec

impl Hash for ip_mreq

impl Hash for ip_mreq_source

impl Hash for ip_mreqn

impl Hash for ipc_perm

impl Hash for ipv6_mreq

impl Hash for itimerspec

impl Hash for itimerval

impl Hash for lconv

impl Hash for linger

impl Hash for mallinfo

impl Hash for mcontext_t

impl Hash for mmsghdr

impl Hash for mntent

impl Hash for mq_attr

impl Hash for msginfo

impl Hash for msqid_ds

impl Hash for nl_mmap_hdr

impl Hash for nl_mmap_req

impl Hash for nl_pktinfo

impl Hash for nlattr

impl Hash for nlmsgerr

impl Hash for nlmsghdr

impl Hash for ntptimeval

impl Hash for packet_mreq

impl Hash for passwd

impl Hash for pollfd

impl Hash for posix_spawn_file_actions_t

impl Hash for posix_spawnattr_t

impl Hash for protoent

impl Hash for pthread_attr_t

impl Hash for pthread_cond_t

impl Hash for pthread_condattr_t

impl Hash for pthread_mutex_t

impl Hash for pthread_mutexattr_t

impl Hash for pthread_rwlock_t

impl Hash for pthread_rwlockattr_t

impl Hash for regex_t

impl Hash for regmatch_t

impl Hash for rlimit64

impl Hash for rlimit

impl Hash for rtentry

impl Hash for rusage

impl Hash for sched_param

impl Hash for sem_t

impl Hash for sembuf

impl Hash for servent

impl Hash for shmid_ds

impl Hash for sigaction

impl Hash for sigevent

impl Hash for siginfo_t

impl Hash for sigset_t

impl Hash for sigval

impl Hash for sock_extended_err

impl Hash for sockaddr_alg

impl Hash for sockaddr_ll

impl Hash for sockaddr_nl

impl Hash for sockaddr_vm

impl Hash for spwd

impl Hash for stack_t

impl Hash for stat64

impl Hash for statfs64

impl Hash for statfs

impl Hash for statvfs64

impl Hash for statvfs

impl Hash for statx

impl Hash for statx_timestamp

impl Hash for sysinfo

impl Hash for termios2

impl Hash for termios

impl Hash for timespec

impl Hash for timeval

impl Hash for timex

impl Hash for tm

impl Hash for tms

impl Hash for ucontext_t

impl Hash for ucred

impl Hash for uinput_abs_setup

impl Hash for uinput_ff_erase

impl Hash for uinput_ff_upload

impl Hash for uinput_setup

impl Hash for uinput_user_dev

impl Hash for user

impl Hash for user_fpregs_struct

impl Hash for user_regs_struct

impl Hash for utimbuf

impl Hash for utmpx

impl Hash for utsname

impl Hash for Dir

impl Hash for Entry

impl Hash for OwningIter

impl Hash for AtFlags

impl Hash for FallocateFlags

impl Hash for otter_api_tests::imports::nix::fcntl::FdFlag

impl Hash for OFlag

impl Hash for SealFlag

impl Hash for SpliceFFlags

impl Hash for InterfaceAddress

impl Hash for InterfaceAddressIterator

impl Hash for DeleteModuleFlags

impl Hash for ModuleInitFlags

impl Hash for MntFlags

impl Hash for otter_api_tests::imports::nix::mount::MsFlags

impl Hash for otter_api_tests::imports::nix::mqueue::FdFlag

impl Hash for MQ_OFlag

impl Hash for MqAttr

impl Hash for InterfaceFlags

impl Hash for PollFd

impl Hash for PollFlags

impl Hash for OpenptyResult

impl Hash for PtyMaster

impl Hash for winsize

impl Hash for CloneFlags

impl Hash for CpuSet

impl Hash for EpollCreateFlags

impl Hash for EpollEvent

impl Hash for EpollFlags

impl Hash for EfdFlags

impl Hash for AddWatchFlags

impl Hash for InitFlags

impl Hash for otter_api_tests::imports::nix::sys::inotify::WatchDescriptor

impl Hash for MemFdCreateFlag

impl Hash for MRemapFlags

impl Hash for MapFlags

impl Hash for MlockAllFlags

impl Hash for otter_api_tests::imports::nix::sys::mman::MsFlags

impl Hash for ProtFlags

impl Hash for Persona

impl Hash for Options

impl Hash for Dqblk

impl Hash for QuotaValidFlags

impl Hash for FdSet

impl Hash for SaFlags

impl Hash for SigAction

impl Hash for SigEvent

impl Hash for SignalIterator

impl Hash for SfdFlags

impl Hash for SigSet

impl Hash for SignalFd

impl Hash for signalfd_siginfo

impl Hash for AcceptConn

impl Hash for BindToDevice

impl Hash for Broadcast

impl Hash for IpAddMembership

impl Hash for IpDropMembership

impl Hash for IpMulticastLoop

impl Hash for IpMulticastTtl

impl Hash for IpTransparent

impl Hash for Ipv4PacketInfo

impl Hash for Ipv6AddMembership

impl Hash for Ipv6DropMembership

impl Hash for Ipv6RecvPacketInfo

impl Hash for KeepAlive

impl Hash for Linger

impl Hash for Mark

impl Hash for OobInline

impl Hash for OriginalDst

impl Hash for PassCred

impl Hash for PeerCredentials

impl Hash for RcvBuf

impl Hash for RcvBufForce

impl Hash for ReceiveTimeout

impl Hash for ReceiveTimestamp

impl Hash for ReuseAddr

impl Hash for ReusePort

impl Hash for SendTimeout

impl Hash for SndBuf

impl Hash for SndBufForce

impl Hash for SockType

impl Hash for SocketError

impl Hash for TcpCongestion

impl Hash for TcpKeepCount

impl Hash for TcpKeepIdle

impl Hash for TcpKeepInterval

impl Hash for TcpNoDelay

impl Hash for UdpGroSegment

impl Hash for UdpGsoSegment

impl Hash for AlgAddr

impl Hash for otter_api_tests::imports::nix::sys::socket::Ipv4Addr

impl Hash for otter_api_tests::imports::nix::sys::socket::Ipv6Addr

impl Hash for LinkAddr

impl Hash for MsgFlags

impl Hash for NetlinkAddr

impl Hash for SockFlag

impl Hash for UnixAddr

impl Hash for VsockAddr

impl Hash for cmsghdr

impl Hash for msghdr

impl Hash for sockaddr

impl Hash for sockaddr_in6

impl Hash for sockaddr_in

impl Hash for sockaddr_storage

impl Hash for sockaddr_un

impl Hash for stat

impl Hash for Mode

impl Hash for SFlag

impl Hash for FsFlags

impl Hash for Statvfs

impl Hash for SysInfo

impl Hash for ControlFlags

impl Hash for InputFlags

impl Hash for LocalFlags

impl Hash for OutputFlags

impl Hash for TimeVal

impl Hash for TimerFlags

impl Hash for TimerSetTimeFlags

impl Hash for RemoteIoVec

impl Hash for UtsName

impl Hash for WaitPidFlag

impl Hash for otter_api_tests::imports::nix::time::ClockId

impl Hash for UContext

impl Hash for DefaultKey[src]

impl Hash for KeyData[src]

impl Hash for UnixSocketAddr

impl Hash for AccountId[src]

impl Hash for AccountName[src]

impl Hash for AccountNotFound[src]

impl Hash for ClientId[src]

impl Hash for FaceId[src]

impl Hash for GoodItemName[src]

impl Hash for Html

impl Hash for HtmlLit

impl Hash for HtmlStr

impl Hash for InstanceName[src]

impl Hash for Notch[src]

impl Hash for OccId[src]

impl Hash for OccultIlkId[src]

impl Hash for OccultIlkName[src]

impl Hash for PieceId[src]

impl Hash for PlayerId[src]

impl Hash for RawToken[src]

impl Hash for RawTokenVal[src]

impl Hash for TokenRevelationKey[src]

impl Hash for UrlSpec[src]

impl Hash for VisiblePieceId[src]

impl Hash for ThreadId1.19.0[src]

impl Hash for SystemTime1.8.0[src]

impl Hash for AccessFlags

impl Hash for Gid

impl Hash for Pid

impl Hash for UCred[src]

impl Hash for DescId[src]

impl Hash for otter_api_tests::shapelib::Duration1.3.0[src]

impl Hash for Instant1.8.0[src]

impl Hash for NonZeroUsize1.28.0[src]

impl Hash for OsStr[src]

impl Hash for PathBuf[src]

impl Hash for SvgId[src]

impl Hash for TimeSpec

impl Hash for Uid

impl Hash for otter_api_tests::shapelib::Url[src]

URLs hash like their serialization.

impl Hash for ZCoord

impl<'_, B> Hash for Cow<'_, B> where
    B: Hash + ToOwned + ?Sized
[src]

impl<'a> Hash for FcntlArg<'a>

impl<'a> Hash for AddrName<'a>

impl<'a> Hash for Location<'a>1.10.0[src]

impl<'a> Hash for Metadata<'a>[src]

impl<'a> Hash for MetadataBuilder<'a>[src]

impl<'d> Hash for Iter<'d>

impl<A> Hash for ArrayString<A> where
    A: Array<Item = u8> + Copy
[src]

impl<A> Hash for otter_api_tests::shapelib::ArrayVec<A> where
    A: Array,
    <A as Array>::Item: Hash
[src]

impl<A> Hash for VecDeque<A> where
    A: Hash
[src]

impl<A, B> Hash for EitherOrBoth<A, B> where
    B: Hash,
    A: Hash
[src]

impl<D> Hash for OccultationKindGeneral<D> where
    D: Hash
[src]

impl<Dyn> Hash for DynMetadata<Dyn> where
    Dyn: ?Sized
[src]

impl<E> Hash for Compat<E> where
    E: Hash

impl<I, T> Hash for IndexSlice<I, [T]> where
    T: Hash,
    I: Idx

impl<I, T> Hash for IndexVec<I, T> where
    T: Hash,
    I: Hash + Idx

impl<Idx> Hash for otter_api_tests::imports::failure::_core::ops::Range<Idx> where
    Idx: Hash
[src]

impl<Idx> Hash for RangeFrom<Idx> where
    Idx: Hash
[src]

impl<Idx> Hash for RangeInclusive<Idx> where
    Idx: Hash
1.26.0[src]

impl<Idx> Hash for RangeTo<Idx> where
    Idx: Hash
[src]

impl<Idx> Hash for RangeToInclusive<Idx> where
    Idx: Hash
1.26.0[src]

impl<K, V> Hash for BTreeMap<K, V> where
    K: Hash,
    V: Hash
[src]

impl<K, V> Hash for EnumMap<K, V> where
    K: Enum<V>,
    V: Hash

impl<L, R> Hash for Either<L, R> where
    L: Hash,
    R: Hash
[src]

impl<P> Hash for Pin<P> where
    P: Deref,
    <P as Deref>::Target: Hash
1.41.0[src]

impl<T> Hash for LocalResult<T> where
    T: Hash
[src]

impl<T> Hash for Bound<T> where
    T: Hash
1.17.0[src]

impl<T> Hash for Option<T> where
    T: Hash
[src]

impl<T> Hash for Poll<T> where
    T: Hash
1.36.0[src]

impl<T> Hash for Reverse<T> where
    T: Hash
1.19.0[src]

impl<T> Hash for NonNull<T> where
    T: ?Sized
1.25.0[src]

impl<T> Hash for IoVec<T> where
    T: Hash

impl<T> Hash for NotNan<T> where
    T: Float

impl<T> Hash for Spanned<T> where
    T: Hash
[src]

impl<T> Hash for IsHtmlFormatted<T> where
    T: Hash + Display

impl<T> Hash for OldNew<T> where
    T: Hash
[src]

impl<T> Hash for Discriminant<T>1.21.0[src]

impl<T> Hash for ManuallyDrop<T> where
    T: Hash + ?Sized
1.20.0[src]

impl<T> Hash for Arc<T> where
    T: Hash + ?Sized
[src]

impl<T> Hash for BTreeSet<T> where
    T: Hash
[src]

impl<T> Hash for OrderedFloat<T> where
    T: Float

impl<T> Hash for PhantomData<T> where
    T: ?Sized
[src]

impl<T> Hash for PosC<T> where
    T: Hash

impl<T> Hash for RectC<T> where
    T: Hash

impl<T> Hash for Wrapping<T> where
    T: Hash
[src]

impl<T, E> Hash for Result<T, E> where
    T: Hash,
    E: Hash
[src]

impl<T, I> Hash for Deque<T, I> where
    T: Hash,
    I: Hash + Offset

impl<Tz> Hash for Date<Tz> where
    Tz: TimeZone
[src]

impl<Tz> Hash for DateTime<Tz> where
    Tz: TimeZone
[src]

impl<Y, R> Hash for GeneratorState<Y, R> where
    R: Hash,
    Y: Hash
[src]

Loading content...