Expand description
Specifies how to break the highlighted fragments. Defaults to
sentence
.
Variants
Chars
Use the characters specified by boundary_chars
as highlighting boundaries. The
boundary_max_scan
setting controls how far to scan for boundary characters.
Sentence(Option<String>)
Break highlighted fragments at the next sentence boundary, as determined by Java’s
BreakIterator.
You can specify the locale to use with boundary_scanner_locale
.
Word(Option<String>)
Break highlighted fragments at the next word boundary, as determined by Java’s
BreakIterator.
You can specify the locale to use with boundary_scanner_locale
.
Trait Implementations
sourceimpl Clone for FvhBoundaryScanner
impl Clone for FvhBoundaryScanner
sourcefn clone(&self) -> FvhBoundaryScanner
fn clone(&self) -> FvhBoundaryScanner
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FvhBoundaryScanner
impl Debug for FvhBoundaryScanner
sourceimpl Ord for FvhBoundaryScanner
impl Ord for FvhBoundaryScanner
sourceimpl PartialEq<FvhBoundaryScanner> for FvhBoundaryScanner
impl PartialEq<FvhBoundaryScanner> for FvhBoundaryScanner
sourcefn eq(&self, other: &FvhBoundaryScanner) -> bool
fn eq(&self, other: &FvhBoundaryScanner) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FvhBoundaryScanner) -> bool
fn ne(&self, other: &FvhBoundaryScanner) -> bool
This method tests for !=
.
sourceimpl PartialOrd<FvhBoundaryScanner> for FvhBoundaryScanner
impl PartialOrd<FvhBoundaryScanner> for FvhBoundaryScanner
sourcefn partial_cmp(&self, other: &FvhBoundaryScanner) -> Option<Ordering>
fn partial_cmp(&self, other: &FvhBoundaryScanner) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for FvhBoundaryScanner
impl Serialize for FvhBoundaryScanner
impl Eq for FvhBoundaryScanner
impl StructuralEq for FvhBoundaryScanner
impl StructuralPartialEq for FvhBoundaryScanner
Auto Trait Implementations
impl RefUnwindSafe for FvhBoundaryScanner
impl Send for FvhBoundaryScanner
impl Sync for FvhBoundaryScanner
impl Unpin for FvhBoundaryScanner
impl UnwindSafe for FvhBoundaryScanner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more