#[doc(hidden)]pub trait StrictRInt: Copy + Display {
const NAME: &'static str;
// Required methods
fn to_r_int(self) -> Option<i32>;
fn range_reason(self) -> String;
}Expand description
A lossy integer type for the strict outbound path: its R integer, if any, and the reason it has none.
Required Associated Constants§
Required Methods§
Sourcefn to_r_int(self) -> Option<i32>
fn to_r_int(self) -> Option<i32>
Some when the value is an R integer: it fits i32 and is not
i32::MIN, which is NA_integer_ in R.
Sourcefn range_reason(self) -> String
fn range_reason(self) -> String
Why self has no R integer.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".