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 for FvhBoundaryScanner
impl PartialEq for FvhBoundaryScanner
Source§impl PartialOrd for FvhBoundaryScanner
impl PartialOrd for FvhBoundaryScanner
Source§impl Serialize for FvhBoundaryScanner
impl Serialize for FvhBoundaryScanner
impl Eq for FvhBoundaryScanner
impl StructuralPartialEq for FvhBoundaryScanner
Auto Trait Implementations§
impl Freeze for FvhBoundaryScanner
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