pub trait AsVector {
// Required method
fn as_vector(&self) -> Result<SEXP, AsCoerceError>;
}Expand description
Trait for types that can be coerced to a generic vector via as.vector().
This is the most general vector coercion, typically stripping attributes.
Required Methods§
Sourcefn as_vector(&self) -> Result<SEXP, AsCoerceError>
fn as_vector(&self) -> Result<SEXP, AsCoerceError>
Convert to an R vector.