pub trait Kinds {
type Id: RefId;
const NAMES: &'static [&'static str];
// Provided method
fn first() -> KindName { ... }
}Expand description
One kind or several ((File, Doc), sharing an id type): what a
reference field takes.
Required Associated Constants§
Required Associated Types§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".