Skip to main content

Module rstr

Module rstr 

Source

Re-exportsยง

use extendr_ffi::R_BlankString; ๐Ÿ”’
use extendr_ffi::R_NaString; ๐Ÿ”’
use extendr_ffi::R_NilValue; ๐Ÿ”’
use extendr_ffi::Rf_xlength; ๐Ÿ”’
use extendr_ffi::R_CHAR; ๐Ÿ”’
use extendr_ffi::SEXPTYPE; ๐Ÿ”’
use extendr_ffi::TYPEOF; ๐Ÿ”’
use super::*; ๐Ÿ”’

Structsยง

Rstr
Wrapper for creating CHARSXP objects. These are used only as the contents of a character vector.

Functionsยง

charsxp_to_str ๐Ÿ”’ โš 
Returns a rust string-slice based on the provided SEXP, which is of type SEXPTYPE::CHARSXP. Note that the length of a CHARSXP is exactly the number of non-null bytes in said R character.