Skip to main content

KwArgsMap

Type Alias KwArgsMap 

Source
pub type KwArgsMap<T> = IndexMap<Wtf8Buf, T, BuildHasherDefault<DefaultHasher>>;
Expand description

The map behind KwArgs.

The hasher is zero-sized rather than the randomly seeded default: a KwArgs is built for every call, including the far more common keyword-less one, and seeding reads a thread-local. Keyword names come from the program text, so per-process hash randomization buys nothing.

Aliased Typeยง

pub struct KwArgsMap<T> { /* private fields */ }