Skip to main content

charsxp_to_str_impl

Function charsxp_to_str_impl 

Source
unsafe fn charsxp_to_str_impl(ptr: *const c_char, charsxp: SEXP) -> &'static str
Expand description

Shared implementation: given a data pointer and CHARSXP, produce &str.

UTF-8 locale is asserted at init — from_utf8_unchecked is safe.