pub trait AsCharacter {
// Required method
fn as_character(&self) -> Result<SEXP, AsCoerceError>;
}Expand description
Trait for types that can be coerced to character via as.character().
This typically produces a string representation of the object. For single values, return a single-element vector; for collections, return a vector with one element per item.
Required Methods§
Sourcefn as_character(&self) -> Result<SEXP, AsCoerceError>
fn as_character(&self) -> Result<SEXP, AsCoerceError>
Convert to an R character vector.