Skip to main content

UniqueId

Trait UniqueId 

Source
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§

Source

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".

Implementors§