Struct rustc_hir::def_path_hash_map::Config
source · [−]pub struct Config;
Trait Implementations
sourceimpl Config for Config
impl Config for Config
type Key = DefPathHash
type Value = DefIndex
type EncodedKey = [u8; 16]
type EncodedValue = [u8; 4]
type H = UnHashFn
sourcefn encode_key(k: &DefPathHash) -> [u8; 16]
fn encode_key(k: &DefPathHash) -> [u8; 16]
Implementations of the
encode_key
and encode_value
methods must encode
the given key/value into a fixed size array. See above for requirements. Read moresourcefn encode_value(v: &DefIndex) -> [u8; 4]
fn encode_value(v: &DefIndex) -> [u8; 4]
Implementations of the
encode_key
and encode_value
methods must encode
the given key/value into a fixed size array. See above for requirements. Read morefn decode_key(k: &[u8; 16]) -> DefPathHash
fn decode_value(v: &[u8; 4]) -> DefIndex
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
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: 0 bytes