pub trait RCoerceCharacter {
// Required method
fn as_character(&self) -> Result<SEXP, RCoerceError>;
}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, RCoerceError>
fn as_character(&self) -> Result<SEXP, RCoerceError>
Convert to an R character vector.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".