extendr_api::wrapper::altrep

Trait AltRawImpl

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

    // Provided method
    fn get_region(&self, index: usize, data: &mut [u8]) -> usize { ... }
}

Required Methods§

Source

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

Get a single element from this vector.

Provided Methods§

Source

fn get_region(&self, index: usize, data: &mut [u8]) -> usize

Get a multiple elements from this vector.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§