pub struct SubtreeMetrics {
pub lines: usize,
pub chars: usize,
pub bytes: usize,
}Expand description
Subtree character, newline, and byte count metrics cached at each node in the B-Tree.
Fields§
§lines: usize§chars: usize§bytes: usizeImplementations§
Source§impl SubtreeMetrics
impl SubtreeMetrics
pub const fn zero() -> Self
pub fn from_lines(lines: &[String]) -> Self
pub fn add(&mut self, other: &SubtreeMetrics)
Trait Implementations§
Source§impl Clone for SubtreeMetrics
impl Clone for SubtreeMetrics
impl Copy for SubtreeMetrics
Source§impl Debug for SubtreeMetrics
impl Debug for SubtreeMetrics
Source§impl Default for SubtreeMetrics
impl Default for SubtreeMetrics
impl Eq for SubtreeMetrics
Source§impl PartialEq for SubtreeMetrics
impl PartialEq for SubtreeMetrics
impl StructuralPartialEq for SubtreeMetrics
Auto Trait Implementations§
impl Forget for SubtreeMetrics
impl Freeze for SubtreeMetrics
impl Move for SubtreeMetrics
impl RefUnwindSafe for SubtreeMetrics
impl Send for SubtreeMetrics
impl Sync for SubtreeMetrics
impl Unpin for SubtreeMetrics
impl UnsafeUnpin for SubtreeMetrics
impl UnwindSafe for SubtreeMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.