pub trait AsIdentifier<ById: Identifier> {
    // Required method
    fn as_id(&self) -> &ById;
}
Expand description

Meant to be a helpful trait allowing anything that can be identified by the type specified in ById.

Required Methods§

source

fn as_id(&self) -> &ById

Implementations on Foreign Types§

source§

impl<T> AsIdentifier<T> for &Twhere T: Identifier,

source§

fn as_id(&self) -> &T

Implementors§