numeric

Type Alias numeric 

Source
pub type numeric = f64;
Available on crate features public-by-default-even-public-all-is-not-set and public-all only.
Expand description

Data type that an R SEXP with stype==REALSXP (14) contains.

Such SEXP has R type numeric and is defined into Rust f64 type

Trait Implementations§

Source§

impl RDefault for numeric

Source§

unsafe fn new(len: R_xlen_t) -> SEXP

create an unprotected allocated SEXP with length len Read more
Source§

impl RType for numeric

Source§

const SEXPTYPE: SEXPTYPE = 14u32

SEXP type of R numeric type is REALSXP

Source§

type Data = Self

indicate the underlying data type.
Source§

unsafe fn new(len: usize) -> SEXP
where Self: RDefault,

Allocate a new SEXP object with default value of length len Read more
Source§

unsafe fn from(s: impl AsRef<[<Self as RType>::Data]>) -> SEXP
where Self: RTypeFrom,

Create a R copy from Rust object. Read more
Source§

fn is_type(s: SEXP) -> bool

Get the length of a vector.
Source§

unsafe fn data(s: SEXP) -> *const Self::Data

Get the data pointer of a vector. although get a pointer should be safe, I marked it as an unsafe function since you must take care about what you want to do.
Source§

unsafe fn data_mut(s: SEXP) -> *mut Self::Data
where Self: RTypeMut,

Get the mutable data pointer of a vector. although get a pointer should be safe, I marked it as an unsafe function since you must take care about what you want to do.
Source§

impl RTypeMut for numeric