Skip to main content

Module intern

Module intern 

Source

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.