pub trait Identity:
Hash
+ PartialEq
+ Eq
+ PartialOrd
+ Ord
+ Clone
+ Display
+ Debug {
// Provided method
fn escaped(&self) -> String { ... }
}
Expand description
Marker trait that some type corresponds to the identity of some value. Used for graph traversal book-keeping (seen set, querying, etc)
This type must be cheaply clonable. Clones that re-allocate will negatively affect performance of graph traversal
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.