Skip to main content

AnyReadableVec

Trait AnyReadableVec 

Source
pub trait AnyReadableVec: AnyVec {
    // 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.

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.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<V> AnyReadableVec for V
where V: TypedVec + ReadableVec<V::I, V::T>,