Skip to main content

charsxp_to_str_or_panic

Function charsxp_to_str_or_panic 

Source
pub(crate) unsafe fn charsxp_to_str_or_panic(charsxp: SEXP) -> &'static str
Expand description

try_charsxp_to_str for a caller that has no Result to return: an accessor that returns Option<&str>, a symbol’s print name. Panics with the refusal’s reason on a string marked as bytes or one that is not valid UTF-8; a caller that returns a Result uses try_charsxp_to_str.

§Safety

As try_charsxp_to_str.