Skip to main content

AltrepClass

Trait AltrepClass 

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

Source

const CLASS_NAME: &'static CStr

The class name (null-terminated C string).

Source

const BASE: RBase

The base R type (Int, Real, Logical, etc.).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§