AnyCollectableVec

Trait AnyCollectableVec 

Source
pub trait AnyCollectableVec: AnyVec {
    // Required method
    fn collect_range_json_bytes(
        &self,
        from: Option<usize>,
        to: Option<usize>,
    ) -> Vec<u8> ;

    // Provided methods
    fn range_count(&self, from: Option<i64>, to: Option<i64>) -> usize { ... }
    fn range_weight(&self, from: Option<i64>, to: Option<i64>) -> usize { ... }
}
Expand description

Type-erased trait for collectable vectors.

Required Methods§

Provided Methods§

Source

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

Returns the number of items in the specified range.

Source

fn range_weight(&self, from: Option<i64>, to: Option<i64>) -> usize

Returns the total size in bytes of items in the specified range.

Implementors§

Source§

impl<V> AnyCollectableVec for V
where V: TypedVec + CollectableVec<V::I, V::T>,