Trait Class

Source
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§

Source

const NAME: &'static str

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.

Implementors§

Source§

impl Class for DynamicObjectBase

Source§

const NAME: &'static str = "dynamic::ObjectBase"

Source§

type Parent = DynamicObjectBase