pub trait Registry:
AzBuf
+ Ord
+ Clone
+ Hash
+ Into<Identifier>
+ TryFrom<Identifier>where
Self: Sized,{
const NAME: &'static str;
// Required methods
fn from_id(ctx: Ctx<'_>, id: u32) -> Result<Self, BufReadError>;
fn to_id(&self, ctx: Ctx<'_>) -> Result<u32>;
}Required Associated Constants§
Required Methods§
fn from_id(ctx: Ctx<'_>, id: u32) -> Result<Self, BufReadError>
fn to_id(&self, ctx: Ctx<'_>) -> Result<u32>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".