Trait extendr_api::robj::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§