pub trait AltVec: Altrep {
const HAS_DATAPTR: bool = false;
const HAS_DATAPTR_OR_NULL: bool = false;
const HAS_EXTRACT_SUBSET: bool = false;
// Provided methods
fn dataptr(_x: SEXP, _writable: bool) -> *mut c_void { ... }
fn dataptr_or_null(_x: SEXP) -> *const c_void { ... }
fn extract_subset(_x: SEXP, _indx: SEXP, _call: SEXP) -> SEXP { ... }
}Expand description
Vector-level methods.
All methods are optional with HAS_* gating.
Provided Associated Constants§
Sourceconst HAS_DATAPTR: bool = false
const HAS_DATAPTR: bool = false
Set to true to register dataptr.
Sourceconst HAS_DATAPTR_OR_NULL: bool = false
const HAS_DATAPTR_OR_NULL: bool = false
Set to true to register dataptr_or_null.
Sourceconst HAS_EXTRACT_SUBSET: bool = false
const HAS_EXTRACT_SUBSET: bool = false
Set to true to register extract_subset.
Provided Methods§
Sourcefn dataptr_or_null(_x: SEXP) -> *const c_void
fn dataptr_or_null(_x: SEXP) -> *const c_void
Get data pointer without forcing materialization.
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.