Skip to main content

Identifier

Trait Identifier 

Source
pub trait Identifier:
    Copy
    + Hash
    + From<usize>
    + Into<usize>
    + Eq
    + Ord
    + Debug { }
Expand description

Typed identifier trait used by Registry.

Any Identifier is expected to be a light wrapper over usize.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Identifier for usize

Implementors§