pub trait Identifiable<T> where
    T: Identity
{ 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 for Module { fn get_id(&self) -> Identity::Id { &self.id } }

Required Methods

Implementations on Foreign Types

Implementors