pub struct Word {
pub w: String,
pub p: Option<u32>,
pub f: Option<f64>,
pub c: Option<usize>,
pub s: Option<bool>,
pub ow: Option<String>,
pub op: Option<u32>,
pub m: Option<Vec<Word>>,
pub auto_create: bool,
pub os: Option<bool>,
}Expand description
A segmented word. Field names match the JavaScript IWord object.
Fields§
§w: StringWord text.
p: Option<u32>POS bit flags (POSTAG).
f: Option<f64>Frequency / weight.
c: Option<usize>Start index in the current section (scalar characters).
s: Option<bool>Native dictionary entry.
ow: Option<String>Original word before synonym conversion.
op: Option<u32>Original POS before conversion / retag.
m: Option<Vec<Word>>Merged source tokens (JS m).
auto_create: boolCreated by an optimizer and not in TABLE (JS debug autoCreate).
os: Option<bool>Previous native-dict flag.
Implementations§
Source§impl Word
impl Word
Trait Implementations§
impl StructuralPartialEq for Word
Auto Trait Implementations§
impl Freeze for Word
impl RefUnwindSafe for Word
impl Send for Word
impl Sync for Word
impl Unpin for Word
impl UnsafeUnpin for Word
impl UnwindSafe for Word
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