pub trait Identified {
    // Required methods
    fn as_id(&self) -> &Ident;
    fn as_id_mut(&mut self) -> &mut Ident;
}
Expand description

A trait for structs that have an identifier.

Required Methods§

source

fn as_id(&self) -> &Ident

Get a reference to the identifier of the entity.

source

fn as_id_mut(&mut self) -> &mut Ident

Get a mutable reference to the identifier of the entity.

Implementors§