Skip to main content

HasID

Trait HasID 

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

Indicates that the struct has an ID field

Required Methods§

Source

fn get_id(&self) -> &T

Get the struct’s ID

Implementors§