pub struct Posting {
pub docid: u32,
pub tf: u32,
pub positions: Vec<u32>,
}Expand description
One document’s entry in a posting list.
Fields§
§docid: u32Segment-local dense row id.
tf: u32Occurrences of the term in the document. Always at least one.
positions: Vec<u32>Token positions, strictly ascending. Length equals tf.
Trait Implementations§
impl Eq for Posting
impl StructuralPartialEq for Posting
Auto Trait Implementations§
impl Freeze for Posting
impl RefUnwindSafe for Posting
impl Send for Posting
impl Sync for Posting
impl Unpin for Posting
impl UnsafeUnpin for Posting
impl UnwindSafe for Posting
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