Struct lingua::DetectionResult
source · pub struct DetectionResult { /* private fields */ }
Expand description
This struct describes a contiguous single-language text section within a possibly mixed-language text.
Implementations§
source§impl DetectionResult
impl DetectionResult
sourcepub fn start_index(&self) -> usize
pub fn start_index(&self) -> usize
Returns the start index of the identified single-language substring.
sourcepub fn end_index(&self) -> usize
pub fn end_index(&self) -> usize
Returns the end index of the identified single-language substring.
sourcepub fn word_count(&self) -> usize
pub fn word_count(&self) -> usize
Returns the number of words being part of the identified single-language substring.
Trait Implementations§
source§impl Clone for DetectionResult
impl Clone for DetectionResult
source§fn clone(&self) -> DetectionResult
fn clone(&self) -> DetectionResult
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 DetectionResult
impl Debug for DetectionResult
impl Copy for DetectionResult
Auto Trait Implementations§
impl RefUnwindSafe for DetectionResult
impl Send for DetectionResult
impl Sync for DetectionResult
impl Unpin for DetectionResult
impl UnwindSafe for DetectionResult
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