Trait CollectableVec

Source
pub trait CollectableVec<I, T>: AnyVec + AnyIterableVec<I, T>
where Self: Clone, I: StoredIndex, T: StoredType,
{ // Provided methods fn collect_range( &self, from: Option<usize>, to: Option<usize>, ) -> Result<Vec<T>> { ... } fn i64_to_usize(i: i64, len: usize) -> usize { ... } fn range_count(from: Option<i64>, to: Option<i64>, len: usize) -> usize { ... } fn collect_range_serde_json( &self, from: Option<i64>, to: Option<i64>, ) -> Result<Vec<Value>> { ... } }

Provided Methods§

Source

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

Source

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

Source

fn range_count(from: Option<i64>, to: Option<i64>, len: usize) -> usize

Source

fn collect_range_serde_json( &self, from: Option<i64>, to: Option<i64>, ) -> Result<Vec<Value>>

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: StoredType,