pub trait Identifiable<T>where
T: Identity,{
// Required method
fn get_id(&self) -> T;
}
Expand description
A type is able to extract an Identifer from itself. The identifier type is provided as an argument to the trait
struct Module { id: Identifier }
impl Identity for Identity {}
impl Identifialbe