Identifier

Trait Identifier 

Source
pub trait Identifier: Hash {
    // Required method
    fn to_usize(&self) -> usize;
}
Expand description

A trait which means a type can transform into an usize.

Required Methods§

Source

fn to_usize(&self) -> usize

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.

Implementors§