Expand description
Maintain ownership of R objects.
This provides the functions protect and unprotect.
A single preserved vector holds ownership of all protected objects.
Objects are reference counted, so multiple calls are possible,
unlike R_PreserveObject.
This module exports two functions, protect(sexp) and unprotect(sexp).
Re-exportsยง
use once_cell::sync::Lazy;๐use std::collections::hash_map::Entry;๐use std::collections::hash_map::HashMap;๐use std::sync::Mutex;๐use extendr_ffi::R_NilValue;๐use extendr_ffi::R_PreserveObject;๐use extendr_ffi::R_ReleaseObject;๐use extendr_ffi::R_xlen_t;๐use extendr_ffi::Rf_allocVector;๐use extendr_ffi::Rf_protect;๐use extendr_ffi::Rf_unprotect;๐use extendr_ffi::LENGTH;๐use extendr_ffi::SET_VECTOR_ELT;๐use extendr_ffi::SEXP;๐use extendr_ffi::SEXPTYPE;๐use extendr_ffi::VECTOR_ELT;๐use self::send_sexp::SendSEXP;๐
Modulesยง
- send_
sexp ๐ - Provide a wrapper around Rโs pointer type
SEXPthat isSend.
Structsยง
Constantsยง
Staticsยง
- OWNERSHIP ๐