pub struct Entry<'a> {
pub word: &'a str,
pub code: &'a str,
pub log_prior: i16,
pub raw_freq: u32,
pub match_type: MatchType,
pub flags: EntryFlags,
}Expand description
A read-only entry view backed by mmap (when IdfReader was opened
from a file) or by an owned byte buffer (in no_std use). word
and code borrow string-pool bytes; the lifetime ties them to the
underlying reader.
Fields§
§word: &'a str§code: &'a str§log_prior: i16§raw_freq: u32Pre-quantization corpus frequency. Added v1.4.7 sub-phase A4
as a lossless tiebreaker for entries that share the same Q4
log_prior bucket — without it, cement-side cement can only
recover an estimated freq via exp(log_prior/Q4) - 1, which
collides exactly for bucket-mates. 0 on legacy / synthetic
.idf blobs (the byte slot was previously an unused
bigram_offset placeholder, always zero).
match_type: MatchType§flags: EntryFlagsTrait Implementations§
impl<'a> Copy for Entry<'a>
Auto Trait Implementations§
impl<'a> Freeze for Entry<'a>
impl<'a> RefUnwindSafe for Entry<'a>
impl<'a> Send for Entry<'a>
impl<'a> Sync for Entry<'a>
impl<'a> Unpin for Entry<'a>
impl<'a> UnsafeUnpin for Entry<'a>
impl<'a> UnwindSafe for Entry<'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