pub struct Canonicalized {
pub canonical: String,
pub word_count: usize,
pub shingle_count: usize,
}Expand description
One canonicalisation measurement: the canonical UTF-8 bytes plus the tokenization/shingling counts the pipeline derives from them.
Fields§
§canonical: StringThe canonical UTF-8 form (canonicalize output).
word_count: usizeWhitespace-separated word count of the canonical form.
shingle_count: usizeConsecutive k-word window count, k = min(3, n) (spec §4).
Auto Trait Implementations§
impl Freeze for Canonicalized
impl RefUnwindSafe for Canonicalized
impl Send for Canonicalized
impl Sync for Canonicalized
impl Unpin for Canonicalized
impl UnsafeUnpin for Canonicalized
impl UnwindSafe for Canonicalized
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