Expand description
Specifies how to break the highlighted fragments. Defaults to
sentence
.
Variants
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
.
Warning
Thesentence
scanner splits sentences bigger thanfragment_size
at the first word boundary next tofragment_size
. You can setfragment_size
to 0 to never split any sentence.
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 UnifiedBoundaryScanner
impl Clone for UnifiedBoundaryScanner
sourcefn clone(&self) -> UnifiedBoundaryScanner
fn clone(&self) -> UnifiedBoundaryScanner
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 UnifiedBoundaryScanner
impl Debug for UnifiedBoundaryScanner
sourceimpl Ord for UnifiedBoundaryScanner
impl Ord for UnifiedBoundaryScanner
sourceimpl PartialEq<UnifiedBoundaryScanner> for UnifiedBoundaryScanner
impl PartialEq<UnifiedBoundaryScanner> for UnifiedBoundaryScanner
sourcefn eq(&self, other: &UnifiedBoundaryScanner) -> bool
fn eq(&self, other: &UnifiedBoundaryScanner) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UnifiedBoundaryScanner) -> bool
fn ne(&self, other: &UnifiedBoundaryScanner) -> bool
This method tests for !=
.
sourceimpl PartialOrd<UnifiedBoundaryScanner> for UnifiedBoundaryScanner
impl PartialOrd<UnifiedBoundaryScanner> for UnifiedBoundaryScanner
sourcefn partial_cmp(&self, other: &UnifiedBoundaryScanner) -> Option<Ordering>
fn partial_cmp(&self, other: &UnifiedBoundaryScanner) -> 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 UnifiedBoundaryScanner
impl Serialize for UnifiedBoundaryScanner
impl Eq for UnifiedBoundaryScanner
impl StructuralEq for UnifiedBoundaryScanner
impl StructuralPartialEq for UnifiedBoundaryScanner
Auto Trait Implementations
impl RefUnwindSafe for UnifiedBoundaryScanner
impl Send for UnifiedBoundaryScanner
impl Sync for UnifiedBoundaryScanner
impl Unpin for UnifiedBoundaryScanner
impl UnwindSafe for UnifiedBoundaryScanner
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