pub struct PathNode {
pub begin: usize,
pub end: usize,
pub word_id: i32,
pub left_id: i16,
pub right_id: i16,
pub cost: i16,
pub total_cost: i32,
pub is_oov: bool,
pub oov_pos_id: Option<i16>,
}Expand description
PathNode returned to JS — minimal data for TS post-processing.
Fields§
§begin: usize§end: usize§word_id: i32§left_id: i16§right_id: i16§cost: i16§total_cost: i32§is_oov: bool§oov_pos_id: Option<i16>Trait Implementations§
Source§impl From<&LatticeNode> for PathNode
impl From<&LatticeNode> for PathNode
Source§fn from(n: &LatticeNode) -> Self
fn from(n: &LatticeNode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PathNode
impl RefUnwindSafe for PathNode
impl Send for PathNode
impl Sync for PathNode
impl Unpin for PathNode
impl UnsafeUnpin for PathNode
impl UnwindSafe for PathNode
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