pub struct WordSegment {
pub text: String,
pub is_word: bool,
}Expand description
A segment of text produced by word segmentation.
Fields§
§text: String§is_word: boolImplementations§
Trait Implementations§
Source§impl Clone for WordSegment
impl Clone for WordSegment
Source§fn clone(&self) -> WordSegment
fn clone(&self) -> WordSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WordSegment
impl RefUnwindSafe for WordSegment
impl Send for WordSegment
impl Sync for WordSegment
impl Unpin for WordSegment
impl UnsafeUnpin for WordSegment
impl UnwindSafe for WordSegment
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