pub trait UniqueId:
Clone
+ Copy
+ PartialEq
+ Eq
+ Hash {
// Required method
fn new_unique() -> Self;
}
Expand description
Trait implemented for all generated unique ID types.
Required Methods§
Sourcefn new_unique() -> Self
fn new_unique() -> Self
New unique ID.
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.