extendr_api::wrapper::altrep

Trait AltStringImpl

Source
pub trait AltStringImpl {
    // Required method
    fn elt(&self, _index: usize) -> Rstr;

    // Provided methods
    fn set_elt(&mut self, _index: usize, _value: Rstr) { ... }
    fn is_sorted(&self) -> Rbool { ... }
    fn no_na(&self) -> bool { ... }
}

Required Methods§

Source

fn elt(&self, _index: usize) -> Rstr

Get a single element from this vector.

Provided Methods§

Source

fn set_elt(&mut self, _index: usize, _value: Rstr)

Set a single element in this vector.

Source

fn is_sorted(&self) -> Rbool

Return TRUE if this vector is sorted, FALSE if not and Rbool::na() if unknown.

Source

fn no_na(&self) -> bool

Return true if this vector does not contain NAs.

Implementors§