pub struct PatternStats {
pub count: u32,
pub locations: Vec<PatternLocation>,
}Expand description
Pattern fingerprint catalog — re-exported from sdivi-patterns for WASM embedders.
Aggregated statistics for a single pattern fingerprint within one category.
§Examples
use sdivi_patterns::catalog::PatternStats;
let stats = PatternStats { count: 3, locations: vec![] };
assert_eq!(stats.count, 3);Fields§
§count: u32Total number of instances across all non-excluded files.
locations: Vec<PatternLocation>All source locations where this fingerprint was observed.
Trait Implementations§
Source§impl Clone for PatternStats
impl Clone for PatternStats
Source§fn clone(&self) -> PatternStats
fn clone(&self) -> PatternStats
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 PatternStats
impl Debug for PatternStats
Source§impl<'de> Deserialize<'de> for PatternStats
impl<'de> Deserialize<'de> for PatternStats
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PatternStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PatternStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PatternStats
impl PartialEq for PatternStats
Source§fn eq(&self, other: &PatternStats) -> bool
fn eq(&self, other: &PatternStats) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatternStats
impl Serialize for PatternStats
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PatternStats
Auto Trait Implementations§
impl Freeze for PatternStats
impl RefUnwindSafe for PatternStats
impl Send for PatternStats
impl Sync for PatternStats
impl Unpin for PatternStats
impl UnsafeUnpin for PatternStats
impl UnwindSafe for PatternStats
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