pub trait Kind {
type Id: RefId;
const NAME: &'static str;
// Provided method
fn kind_name() -> KindName { ... }
}Expand description
A kind of thing a reference names: user, doc, file, … — a
format declares its own with kind!, each with the type
of its ids.
Required Associated Constants§
Required Associated Types§
Provided Methods§
Sourcefn kind_name() -> KindName
fn kind_name() -> KindName
Kind::NAME as a kind.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".