Identifies an activation record in the current call topology.
Id for the execution of a stack frame is the combined product of:
- a callsite: lexical source location at which the topologically-nested function was invoked
Id: the identifier which was active when entering the current topo-nested function
- a "slot": runtime value indicating the call's "logical index" within the parent call
By default, the slot used is a count of the number of times that particular
callsite has been executed within the parent
Id's enclosing scope. This
means that when creating an
Id in a loop the identifier will be unique for
each "index" of the loop iteration and will be stable if the same loop is
invoked again. Changing the value used for the slot allows us to have stable
Ids across multiple executions when iterating over elements of a
collection that itself has unstable iteration order.
fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
impl StructuralEq for Id[src]
impl StructuralPartialEq for Id[src]
Auto Trait Implementations
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.