Skip to main content

checked_mkchar

Function checked_mkchar 

Source
pub unsafe fn checked_mkchar(s: &str) -> SEXP
Expand description

Create a CHARSXP from a Rust string, with checked length conversion.

§Safety

Must be called from R’s main thread.

§Panics

Panics if s.len() > i32::MAX.