pub struct PreAnalyzedToken {
pub form: String,
pub tag: String,
pub begin: Option<usize>,
pub end: Option<usize>,
}Expand description
Pre-analyzed token element passed to
crate::KiwiBuilder::add_pre_analyzed_word.
begin/end are character offsets in the given surface form
(Rust str.chars() index space, not byte offsets).
Fields§
§form: StringSurface form.
tag: StringPart-of-speech tag.
begin: Option<usize>Optional begin character offset.
end: Option<usize>Optional end character offset.
Implementations§
Trait Implementations§
Source§impl Clone for PreAnalyzedToken
impl Clone for PreAnalyzedToken
Source§fn clone(&self) -> PreAnalyzedToken
fn clone(&self) -> PreAnalyzedToken
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PreAnalyzedToken
impl RefUnwindSafe for PreAnalyzedToken
impl Send for PreAnalyzedToken
impl Sync for PreAnalyzedToken
impl Unpin for PreAnalyzedToken
impl UnsafeUnpin for PreAnalyzedToken
impl UnwindSafe for PreAnalyzedToken
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