pub struct FullMetricsU32;
Expand description
Index based on both resulting size and raw insert position.
Item 0 is the raw offset position, and item 1 is the content position.
Trait Implementations§
Source§impl Clone for FullMetricsU32
impl Clone for FullMetricsU32
Source§fn clone(&self) -> FullMetricsU32
fn clone(&self) -> FullMetricsU32
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 FullMetricsU32
impl Debug for FullMetricsU32
Source§impl<E: ContentTraits + ContentLength> FindContent<E> for FullMetricsU32
impl<E: ContentTraits + ContentLength> FindContent<E> for FullMetricsU32
fn index_to_content(offset: Self::Value) -> usize
Source§impl<E: ContentTraits + ContentLength> FindOffset<E> for FullMetricsU32
impl<E: ContentTraits + ContentLength> FindOffset<E> for FullMetricsU32
fn index_to_offset(offset: Self::Value) -> usize
Source§impl PartialEq for FullMetricsU32
impl PartialEq for FullMetricsU32
Source§impl<E: ContentTraits + ContentLength> TreeMetrics<E> for FullMetricsU32
impl<E: ContentTraits + ContentLength> TreeMetrics<E> for FullMetricsU32
const CAN_COUNT_ITEMS: bool = true
type Update = Pair<i32>
type Value = Pair<u32>
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, entry: &E)
fn count_items(idx: Self::Value) -> usize
impl Copy for FullMetricsU32
impl Eq for FullMetricsU32
impl StructuralPartialEq for FullMetricsU32
Auto Trait Implementations§
impl Freeze for FullMetricsU32
impl RefUnwindSafe for FullMetricsU32
impl Send for FullMetricsU32
impl Sync for FullMetricsU32
impl Unpin for FullMetricsU32
impl UnwindSafe for FullMetricsU32
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