Crate refid

Source
Expand description

A small crate to enable identity checks (e.g. through pointer comparison) in contrast to equality checks (as done by PartialEq)

Structs§

ById
Newtype for references (or other types that implement Id) where equality is defined by the same method of the Id trait
ByIdDeref
Similar to ById, but uses identity as defined by the dereferenced inner value

Traits§

Id
Type that can be compared in regard to identity (e.g. through address comparison) instead of equality (as done by PartialEq)