pub struct Facet<'a> {
pub field: usize,
pub key: &'a dyn Fn(&[u8]) -> Option<Vec<u8>>,
}Expand description
Count the values of a stored field over the whole match set.
Buckets are keyed by the value’s identity — the same coerced key
DISTINCT groups by, so 1 and 1.0 in a field declared f64 are
one bucket — while the reported label is a spelling that really occurs
in the corpus rather than a re-serialisation.
Fields§
§field: usizeWhich declared value field to count.
key: &'a dyn Fn(&[u8]) -> Option<Vec<u8>>The identity of one stored value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Facet<'a>
impl<'a> !Send for Facet<'a>
impl<'a> !Sync for Facet<'a>
impl<'a> !UnwindSafe for Facet<'a>
impl<'a> Freeze for Facet<'a>
impl<'a> Unpin for Facet<'a>
impl<'a> UnsafeUnpin for Facet<'a>
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