Skip to main content

AltRaw

Trait AltRaw 

Source
pub trait AltRaw: AltVec {
    const HAS_ELT: bool = false;
    const HAS_GET_REGION: bool = false;

    // Provided methods
    fn elt(_x: SEXP, _i: R_xlen_t) -> u8 { ... }
    fn get_region(
        _x: SEXP,
        _i: R_xlen_t,
        _n: R_xlen_t,
        _buf: &mut [u8],
    ) -> R_xlen_t { ... }
}
Expand description

Raw vector methods.

Provided Associated Constants§

Source

const HAS_ELT: bool = false

Set to true to register elt.

Source

const HAS_GET_REGION: bool = false

Set to true to register get_region.

Provided Methods§

Source

fn elt(_x: SEXP, _i: R_xlen_t) -> u8

Get element at index.

Source

fn get_region(_x: SEXP, _i: R_xlen_t, _n: R_xlen_t, _buf: &mut [u8]) -> R_xlen_t

Bulk read elements into buffer.

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.

Implementations on Foreign Types§

Source§

impl AltRaw for &'static [u8]

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

fn elt(x: SEXP, i: R_xlen_t) -> Rbyte

Source§

fn get_region( x: SEXP, start: R_xlen_t, len: R_xlen_t, buf: &mut [u8], ) -> R_xlen_t

Source§

impl AltRaw for Cow<'static, [u8]>

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

fn elt(x: SEXP, i: R_xlen_t) -> u8

Source§

fn get_region( x: SEXP, start: R_xlen_t, len: R_xlen_t, buf: &mut [u8], ) -> R_xlen_t

Source§

impl AltRaw for Box<[u8]>

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

fn elt(x: SEXP, i: R_xlen_t) -> u8

Source§

fn get_region( x: SEXP, start: R_xlen_t, len: R_xlen_t, buf: &mut [u8], ) -> R_xlen_t

Source§

impl AltRaw for Vec<u8>

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

fn elt(x: SEXP, i: R_xlen_t) -> u8

Source§

fn get_region( x: SEXP, start: R_xlen_t, len: R_xlen_t, buf: &mut [u8], ) -> R_xlen_t

Source§

impl<const N: usize> AltRaw for [u8; N]

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

fn elt(x: SEXP, i: R_xlen_t) -> u8

Source§

fn get_region( x: SEXP, start: R_xlen_t, len: R_xlen_t, buf: &mut [u8], ) -> R_xlen_t

Implementors§

Source§

impl<I: Iterator<Item = u8> + 'static> AltRaw for IterRawData<I>

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

impl<I: Iterator<Item = u8> + 'static> AltRaw for SparseIterRawData<I>

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true