Trait Id

Source
pub trait Id:
    FromStr
    + FromU64
    + Display
    + Debug
    + Clone
    + Send { }
Expand description

Trait defining the minimum requirements to be an identifier

  • FromU64 is used to be able to generate the identifier from a line number

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§

Source§

impl<T> Id for T
where T: FromStr + FromU64 + Display + Debug + Clone + Send,