Skip to main content

Module intern

Module intern 

Source

Re-exportsΒ§

use std::fmt; πŸ”’
use std::fmt::Debug; πŸ”’
use std::fmt::Debug; πŸ”’
use std::hash::Hash; πŸ”’
use std::hash::Hash; πŸ”’
use std::hash::Hasher; πŸ”’
use std::ops::Deref; πŸ”’
use std::ptr; πŸ”’
use crate::stable_hash::StableHash; πŸ”’
use crate::stable_hash::StableHashCtxt; πŸ”’
use crate::stable_hash::StableHasher; πŸ”’

ModulesΒ§

private πŸ”’

StructsΒ§

Interned
This type is a reference with one special behaviour: the reference pointer (i.e. the address of the value referred to) is used for equality and hashing, rather than the value’s contents, as would occur with a vanilla reference. There are two cases when this is useful.