pub struct ContentMetrics;
Expand description
Content index - which just indexes based on the resulting size. Deletes are not counted.
Trait Implementations§
Source§impl Clone for ContentMetrics
impl Clone for ContentMetrics
Source§fn clone(&self) -> ContentMetrics
fn clone(&self) -> ContentMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContentMetrics
impl Debug for ContentMetrics
Source§impl<E: ContentTraits + ContentLength> FindContent<E> for ContentMetrics
impl<E: ContentTraits + ContentLength> FindContent<E> for ContentMetrics
fn index_to_content(offset: Self::Value) -> usize
Source§impl PartialEq for ContentMetrics
impl PartialEq for ContentMetrics
Source§impl<E: ContentTraits + ContentLength> TreeMetrics<E> for ContentMetrics
impl<E: ContentTraits + ContentLength> TreeMetrics<E> for ContentMetrics
type Update = isize
type Value = usize
fn increment_marker(marker: &mut Self::Update, entry: &E)
fn decrement_marker(marker: &mut Self::Update, entry: &E)
fn decrement_marker_by_val(marker: &mut Self::Update, val: &Self::Value)
fn update_offset_by_marker(offset: &mut Self::Value, by: &Self::Update)
fn increment_offset(offset: &mut Self::Value, by: &E)
const CAN_COUNT_ITEMS: bool = false
fn count_items(_idx: Self::Value) -> usize
impl Copy for ContentMetrics
impl Eq for ContentMetrics
impl StructuralPartialEq for ContentMetrics
Auto Trait Implementations§
impl Freeze for ContentMetrics
impl RefUnwindSafe for ContentMetrics
impl Send for ContentMetrics
impl Sync for ContentMetrics
impl Unpin for ContentMetrics
impl UnwindSafe for ContentMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more