pub(crate) trait PairListExt {
Show 14 methods
// Required methods
fn cons(self, cdr: SEXP) -> SEXP;
fn lcons(self, cdr: SEXP) -> SEXP;
fn car(&self) -> SEXP;
fn cdr(&self) -> SEXP;
fn tag(&self) -> SEXP;
fn set_tag(&self, tag: SEXP);
fn set_car(&self, value: SEXP) -> SEXP;
fn set_cdr(&self, tail: SEXP) -> SEXP;
unsafe fn cons_unchecked(self, cdr: SEXP) -> SEXP;
unsafe fn car_unchecked(&self) -> SEXP;
unsafe fn cdr_unchecked(&self) -> SEXP;
unsafe fn set_tag_unchecked(&self, tag: SEXP);
unsafe fn set_car_unchecked(&self, value: SEXP) -> SEXP;
unsafe fn set_cdr_unchecked(&self, tail: SEXP) -> SEXP;
}Expand description
Extension trait for SEXP providing pairlist (cons cell) operations.
Pairlist nodes have three slots: CAR (value), CDR (next), and TAG (name). This trait encapsulates the raw C functions behind method calls.
Required Methods§
Sourcefn lcons(self, cdr: SEXP) -> SEXP
fn lcons(self, cdr: SEXP) -> SEXP
Create a language cons cell with this SEXP as CAR and cdr as CDR.