Skip to main content

RCoercePOSIXct

Trait RCoercePOSIXct 

Source
pub trait RCoercePOSIXct {
    // Required method
    fn as_posixct(&self) -> Result<SEXP, RCoerceError>;
}
Expand description

Trait for types that can be coerced to POSIXct via as.POSIXct().

The result should be an R POSIXct object (numeric with “POSIXct”, “POSIXt” class).

Required Methods§

Source

fn as_posixct(&self) -> Result<SEXP, RCoerceError>

Convert to an R POSIXct.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§