pub trait AltrepClass {
const CLASS_NAME: &'static CStr;
const BASE: RBase;
}Expand description
Trait implemented by ALTREP classes via #[miniextendr].
This trait is automatically implemented when using the proc-macro with ALTREP attributes (class, pkg, base).
Required Associated Constants§
Sourceconst CLASS_NAME: &'static CStr
const CLASS_NAME: &'static CStr
The class name (null-terminated C string).
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.