pub struct Segment {
pub word: String,
pub pinyin: Option<Vec<String>>,
}Expand description
One segment per jieba word boundary, with pīnyīn syllables.
pinyin is None (JSON null) for non-Chinese tokens.
Fields§
§word: String§pinyin: Option<Vec<String>>Trait Implementations§
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
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