Skip to main content

Identify

Trait Identify 

Source
pub trait Identify {
    type Id: Identifier;

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

Required Associated Types§

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S> Identify for S
where S: Identifier,

Source§

type Id = S