pub enum FvhBoundaryScanner {
Chars,
Sentence(Option<String>),
Word(Option<String>),
}
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§
source§impl Clone for FvhBoundaryScanner
impl Clone for FvhBoundaryScanner
source§fn clone(&self) -> FvhBoundaryScanner
fn clone(&self) -> FvhBoundaryScanner
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FvhBoundaryScanner
impl Debug for FvhBoundaryScanner
source§impl Ord for FvhBoundaryScanner
impl Ord for FvhBoundaryScanner
source§fn cmp(&self, other: &FvhBoundaryScanner) -> Ordering
fn cmp(&self, other: &FvhBoundaryScanner) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<FvhBoundaryScanner> for FvhBoundaryScanner
impl PartialEq<FvhBoundaryScanner> for FvhBoundaryScanner
source§fn 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 ==
.source§impl PartialOrd<FvhBoundaryScanner> for FvhBoundaryScanner
impl PartialOrd<FvhBoundaryScanner> for FvhBoundaryScanner
source§fn partial_cmp(&self, other: &FvhBoundaryScanner) -> Option<Ordering>
fn partial_cmp(&self, other: &FvhBoundaryScanner) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl 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§
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