extendr_api::robj

Trait GetSexp

Source
pub trait GetSexp {
    // Required methods
    unsafe fn get(&self) -> SEXP;
    unsafe fn get_mut(&mut self) -> SEXP;
    fn as_robj(&self) -> &Robj;
    fn as_robj_mut(&mut self) -> &mut Robj;
}

Required Methods§

Source

unsafe fn get(&self) -> SEXP

Get a copy of the underlying SEXP.

§Safety

Access to a raw SEXP pointer can cause undefined behaviour and is not thread safe.

Source

unsafe fn get_mut(&mut self) -> SEXP

Source

fn as_robj(&self) -> &Robj

Get a reference to a Robj for this type.

Source

fn as_robj_mut(&mut self) -> &mut Robj

Get a mutable reference to a Robj for this type.

Implementors§