pub trait Identifiable {
    type Id: Identifier;

    // Required method
    fn id(&self) -> &Self::Id;
}
Expand description

Interface for identifiable data-structures

Required Associated Types§

Required Methods§

source

fn id(&self) -> &Self::Id

Implementors§

source§

impl<Id: Identifier> Identifiable for Id

§

type Id = Id