Skip to main content

AltrepLen

Trait AltrepLen 

Source
pub trait AltrepLen {
    // Required method
    fn len(&self) -> usize;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

Base trait for ALTREP data types. All ALTREP types must provide length.

Required Methods§

Source

fn len(&self) -> usize

Returns the length of this ALTREP vector.

Provided Methods§

Source

fn is_empty(&self) -> bool

Returns true if the vector is empty.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AltrepLen for &[&str]

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for &[String]

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for &[bool]

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for &[f64]

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for &[i32]

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for &[u8]

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Box<[Rcomplex]>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Box<[String]>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Box<[bool]>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Box<[f64]>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Box<[i32]>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Box<[u8]>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Cow<'static, [Rcomplex]>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Cow<'static, [f64]>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Cow<'static, [i32]>

Source§

fn len(&self) -> usize

Source§

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

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Range<f64>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Range<i32>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Range<i64>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Vec<Cow<'static, str>>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Vec<Option<Cow<'static, str>>>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Vec<Option<String>>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Vec<Rcomplex>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Vec<String>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Vec<bool>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Vec<f64>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Vec<i32>

Source§

fn len(&self) -> usize

Source§

impl AltrepLen for Vec<u8>

Source§

fn len(&self) -> usize

Source§

impl<const N: usize> AltrepLen for [Rcomplex; N]

Source§

fn len(&self) -> usize

Source§

impl<const N: usize> AltrepLen for [String; N]

Source§

fn len(&self) -> usize

Source§

impl<const N: usize> AltrepLen for [bool; N]

Source§

fn len(&self) -> usize

Source§

impl<const N: usize> AltrepLen for [f64; N]

Source§

fn len(&self) -> usize

Source§

impl<const N: usize> AltrepLen for [i32; N]

Source§

fn len(&self) -> usize

Source§

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

Source§

fn len(&self) -> usize

Implementors§

Source§

impl<F: Fn(usize, &mut [f64]) -> usize> AltrepLen for StreamingRealData<F>

Source§

impl<F: Fn(usize, &mut [i32]) -> usize> AltrepLen for StreamingIntData<F>

Source§

impl<I, T> AltrepLen for IterIntCoerceData<I, T>
where I: Iterator<Item = T>, T: Coerce<i32> + Copy,

Source§

impl<I, T> AltrepLen for IterRealCoerceData<I, T>
where I: Iterator<Item = T>, T: Coerce<f64> + Copy,

Source§

impl<I: Iterator<Item = bool>> AltrepLen for IterLogicalData<I>

Source§

impl<I: Iterator<Item = bool>> AltrepLen for SparseIterLogicalData<I>

Source§

impl<I: Iterator<Item = f64>> AltrepLen for IterRealData<I>

Source§

impl<I: Iterator<Item = f64>> AltrepLen for SparseIterRealData<I>

Source§

impl<I: Iterator<Item = f64>> AltrepLen for WindowedIterRealData<I>

Source§

impl<I: Iterator<Item = i32>> AltrepLen for IterIntData<I>

Source§

impl<I: Iterator<Item = i32>> AltrepLen for SparseIterIntData<I>

Source§

impl<I: Iterator<Item = i32>> AltrepLen for WindowedIterIntData<I>

Source§

impl<I: Iterator<Item = u8>> AltrepLen for IterRawData<I>

Source§

impl<I: Iterator<Item = u8>> AltrepLen for SparseIterRawData<I>

Source§

impl<I> AltrepLen for IterComplexData<I>
where I: Iterator<Item = Rcomplex>,

Source§

impl<I> AltrepLen for IterIntFromBoolData<I>
where I: Iterator<Item = bool>,

Source§

impl<I> AltrepLen for IterListData<I>
where I: Iterator<Item = SEXP>,

Source§

impl<I> AltrepLen for IterStringData<I>
where I: Iterator<Item = String>,

Source§

impl<I> AltrepLen for SparseIterComplexData<I>
where I: Iterator<Item = Rcomplex>,