pub trait ById {
type Id;
type Entry;
type Error;
// Required methods
fn byid(&self, t: Self::Id) -> Result<&Self::Entry, Self::Error>;
fn byid_mut(&mut self, t: Self::Id) -> Result<&mut Self::Entry, Self::Error>;
}Required Associated Types§
Required Methods§
fn byid(&self, t: Self::Id) -> Result<&Self::Entry, Self::Error>
fn byid_mut(&mut self, t: Self::Id) -> Result<&mut Self::Entry, Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".