Skip to main content

Module sexp_types

Module sexp_types 

Source
Expand description

Core type vocabulary for R values: SEXPTYPE, R_xlen_t, Rcomplex, RLogical, Rboolean, RNativeType, cetype_t. Core type vocabulary for R values: SEXPTYPE, R_xlen_t, Rbyte, Rcomplex, RLogical, Rboolean, cetype_t, R_CFinalizer_t, and the RNativeType and IsNA traits + impls.

These types are the bridge between raw R FFI (in crate::sys) and the safe Rust API on SEXP (in crate::sexp and crate::sexp_ext). Most user code reaches them via crate::prelude.

Re-exportsยง

use crate::SEXP; ๐Ÿ”’
use crate::altrep_traits::NA_REAL; ๐Ÿ”’
use crate::sys::COMPLEX; ๐Ÿ”’
use crate::sys::COMPLEX_ELT; ๐Ÿ”’
use crate::sys::INTEGER; ๐Ÿ”’
use crate::sys::INTEGER_ELT; ๐Ÿ”’
use crate::sys::LOGICAL; ๐Ÿ”’
use crate::sys::LOGICAL_ELT; ๐Ÿ”’
use crate::sys::RAW; ๐Ÿ”’
use crate::sys::RAW_ELT; ๐Ÿ”’
use crate::sys::REAL; ๐Ÿ”’
use crate::sys::REAL_ELT; ๐Ÿ”’
use crate::sys::Rf_type2char; ๐Ÿ”’
use crate::sys::Rf_xlength; ๐Ÿ”’
pub use cetype_t::CE_UTF8;

Structsยง

RLogical
Rโ€™s logical element type (the contents of a LGLSXP vector).
Rcomplex
Rโ€™s complex scalar layout (Rcomplex).

Enumsยง

Rboolean
Binary boolean used by many R C APIs.
SEXPTYPE
R S-expression tag values (SEXPTYPE).
cetype_t
Character encoding tag used by CHARSXP constructors.

Traitsยง

IsNA
Native R elements with an actual NA representation.
RNativeType
Marker trait for types that correspond to Rโ€™s native vector element types.

Type Aliasesยง

R_CFinalizer_t
C finalizer callback signature used by external pointers.
R_xlen_t
Rโ€™s extended vector length type (R_xlen_t).
Rbyte
R byte element type used by RAWSXP.