Skip to main content

Module traits

Module traits 

Source
Expand description

Per-family ALTREP data traits.

Each ALTREP family has a high-level data trait that users implement:

TraitR TypeKey Method
AltIntegerDataINTSXPelt(i) -> i32
AltRealDataREALSXPelt(i) -> f64
AltLogicalDataLGLSXPelt(i) -> Logical
AltRawDataRAWSXPelt(i) -> u8
AltComplexDataCPLXSXPelt(i) -> Rcomplex
AltStringDataSTRSXPelt(i) -> Option<&str>
AltListDataVECSXPelt(i) -> SEXP

Traitsยง

AltComplexData
Trait for types that can back an ALTCOMPLEX vector.
AltIntegerData
Trait for types that can back an ALTINTEGER vector.
AltListData
Trait for types that can back an ALTLIST vector.
AltLogicalData
Trait for types that can back an ALTLOGICAL vector.
AltRawData
Trait for types that can back an ALTRAW vector.
AltRealData
Trait for types that can back an ALTREAL vector.
AltStringData
Trait for types that can back an ALTSTRING vector.