CollectableVec

Trait CollectableVec 

Source
pub trait CollectableVec<I, T>: AnyIterableVec<I, T>
where Self: Clone, I: StoredIndex, T: StoredRaw,
{ // Provided methods fn iter_range( &self, from: Option<usize>, to: Option<usize>, ) -> impl Iterator<Item = T> { ... } fn iter_signed_range( &self, from: Option<i64>, to: Option<i64>, ) -> impl Iterator<Item = T> { ... } fn collect(&self) -> Vec<T> { ... } fn collect_range(&self, from: Option<usize>, to: Option<usize>) -> Vec<T> { ... } fn collect_signed_range(&self, from: Option<i64>, to: Option<i64>) -> Vec<T> { ... } fn collect_range_json_bytes( &self, from: Option<usize>, to: Option<usize>, ) -> Vec<u8> { ... } fn collect_range_string( &self, from: Option<usize>, to: Option<usize>, ) -> Vec<String> { ... } fn i64_to_usize_(i: i64, len: usize) -> usize { ... } }

Provided Methods§

Source

fn iter_range( &self, from: Option<usize>, to: Option<usize>, ) -> impl Iterator<Item = T>

Source

fn iter_signed_range( &self, from: Option<i64>, to: Option<i64>, ) -> impl Iterator<Item = T>

Source

fn collect(&self) -> Vec<T>

Source

fn collect_range(&self, from: Option<usize>, to: Option<usize>) -> Vec<T>

Source

fn collect_signed_range(&self, from: Option<i64>, to: Option<i64>) -> Vec<T>

Source

fn collect_range_json_bytes( &self, from: Option<usize>, to: Option<usize>, ) -> Vec<u8>

Source

fn collect_range_string( &self, from: Option<usize>, to: Option<usize>, ) -> Vec<String>

Source

fn i64_to_usize_(i: i64, len: usize) -> usize

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§

Source§

impl<I, T, V> CollectableVec<I, T> for V
where V: AnyVec + AnyIterableVec<I, T> + Clone, I: StoredIndex, T: StoredRaw + 'static,