Trait HasID

Source
pub trait HasID<ID: IDLike> {
    // Required method
    fn get_id(&self) -> &ID;
}
Expand description

Indicates that the struct has an ID field

Required Methods§

Source

fn get_id(&self) -> &ID

Get the struct’s ID

Implementors§