pub struct SegmentShape {
pub fields: usize,
pub positions: bool,
pub values: usize,
}Expand description
What an index declares, in the terms a segment is built from.
Fields§
§fields: usizeSeparately scored fields — IN <field…> scopes to these. 0 or 1
keeps no per-field breakdown, because with one field the
per-field numbers are the merged ones.
positions: boolRecord token positions (WITH POSITIONS) for phrase, proximity
and adjacency-verified highlight.
values: usizeValue fields stored per document (VALUES), for the clauses that
read a document’s own value rather than a term’s postings.
Trait Implementations§
Source§impl Clone for SegmentShape
impl Clone for SegmentShape
Source§fn clone(&self) -> SegmentShape
fn clone(&self) -> SegmentShape
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 moreimpl Copy for SegmentShape
Source§impl Default for SegmentShape
impl Default for SegmentShape
Source§fn default() -> SegmentShape
fn default() -> SegmentShape
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SegmentShape
impl RefUnwindSafe for SegmentShape
impl Send for SegmentShape
impl Sync for SegmentShape
impl Unpin for SegmentShape
impl UnsafeUnpin for SegmentShape
impl UnwindSafe for SegmentShape
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