pub trait Class {
type Parent: Sized + Class;
const NAME: &'static str;
// Required methods
fn id() -> usize;
fn offset() -> isize;
fn isa(id: usize) -> bool;
}
Expand description
Implemented by #subclass macro
Required Associated Constants§
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.