pub struct HighlightFieldConfig {
pub field: String,
pub fragment_size: usize,
pub number_of_fragments: usize,
}Expand description
Per-field highlight settings.
fragment_size / number_of_fragments cap the number of spans
returned for very long fields. 0 for both means “emit every
match”.
Fields§
§field: String§fragment_size: usize§number_of_fragments: usizeTrait Implementations§
Source§impl Clone for HighlightFieldConfig
impl Clone for HighlightFieldConfig
Source§fn clone(&self) -> HighlightFieldConfig
fn clone(&self) -> HighlightFieldConfig
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 moreAuto Trait Implementations§
impl Freeze for HighlightFieldConfig
impl RefUnwindSafe for HighlightFieldConfig
impl Send for HighlightFieldConfig
impl Sync for HighlightFieldConfig
impl Unpin for HighlightFieldConfig
impl UnsafeUnpin for HighlightFieldConfig
impl UnwindSafe for HighlightFieldConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more