pub struct TextCensus {
pub values: u64,
pub bytes: u64,
pub distinct_descriptors: u64,
pub distinct_characters: u64,
pub descriptor_to_characters: Distances,
pub consecutive_descriptors: Distances,
pub consecutive_characters: Distances,
}Expand description
Text values in emission order, and the placement of their two allocations.
Fields§
§values: u64Emitted Value::Str occurrences.
bytes: u64Their UTF-8 bytes before escaping, every occurrence counted.
distinct_descriptors: u64Distinct descriptor allocations among those occurrences.
distinct_characters: u64Distinct character allocations among those occurrences.
descriptor_to_characters: DistancesFrom each occurrence’s descriptor to its characters.
consecutive_descriptors: DistancesBetween the descriptors of consecutively emitted occurrences.
consecutive_characters: DistancesBetween the characters of consecutively emitted occurrences.
Trait Implementations§
Source§impl Clone for TextCensus
impl Clone for TextCensus
Source§fn clone(&self) -> TextCensus
fn clone(&self) -> TextCensus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextCensus
impl Debug for TextCensus
Source§impl Default for TextCensus
impl Default for TextCensus
Source§fn default() -> TextCensus
fn default() -> TextCensus
Returns the “default value” for a type. Read more
impl Eq for TextCensus
Source§impl PartialEq for TextCensus
impl PartialEq for TextCensus
Source§impl Serialize for TextCensus
impl Serialize for TextCensus
impl StructuralPartialEq for TextCensus
Auto Trait Implementations§
impl Freeze for TextCensus
impl RefUnwindSafe for TextCensus
impl Send for TextCensus
impl Sync for TextCensus
impl Unpin for TextCensus
impl UnsafeUnpin for TextCensus
impl UnwindSafe for TextCensus
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.