pub struct NativePathNode {
pub begin: u32,
pub end: u32,
pub word_id: i32,
pub left_id: i32,
pub right_id: i32,
pub cost: i32,
pub total_cost: i32,
pub is_oov: bool,
pub oov_pos_id: Option<i32>,
}Expand description
PathNode returned to JS.
Fields§
§begin: u32§end: u32§word_id: i32§left_id: i32§right_id: i32§cost: i32§total_cost: i32§is_oov: bool§oov_pos_id: Option<i32>Trait Implementations§
Source§impl FromNapiValue for NativePathNode
impl FromNapiValue for NativePathNode
Source§unsafe fn from_napi_value(
env: napi_env,
napi_val: napi_value,
) -> Result<NativePathNode>
unsafe fn from_napi_value( env: napi_env, napi_val: napi_value, ) -> Result<NativePathNode>
Safety Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self, Error>
Source§impl Serialize for NativePathNode
impl Serialize for NativePathNode
Source§impl ToNapiValue for NativePathNode
impl ToNapiValue for NativePathNode
Source§unsafe fn to_napi_value(
env: napi_env,
val: NativePathNode,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: NativePathNode, ) -> Result<napi_value>
Safety Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for NativePathNode
impl TypeName for NativePathNode
Source§impl ValidateNapiValue for NativePathNode
impl ValidateNapiValue for NativePathNode
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for NativePathNode
impl RefUnwindSafe for NativePathNode
impl Send for NativePathNode
impl Sync for NativePathNode
impl Unpin for NativePathNode
impl UnsafeUnpin for NativePathNode
impl UnwindSafe for NativePathNode
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