pub struct JsSegmentOptions {
pub auto_cjk: Option<bool>,
pub all_mod: Option<bool>,
pub node_novel_mode: Option<bool>,
pub convert_synonym: Option<bool>,
}Fields§
§auto_cjk: Option<bool>§all_mod: Option<bool>§node_novel_mode: Option<bool>§convert_synonym: Option<bool>Trait Implementations§
Source§impl FromNapiValue for JsSegmentOptions
impl FromNapiValue for JsSegmentOptions
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for JsSegmentOptions
impl ToNapiValue for JsSegmentOptions
Source§unsafe fn to_napi_value(
env: napi_env,
val: JsSegmentOptions,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: JsSegmentOptions, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for JsSegmentOptions
impl TypeName for JsSegmentOptions
Source§impl ValidateNapiValue for JsSegmentOptions
impl ValidateNapiValue for JsSegmentOptions
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 JsSegmentOptions
impl RefUnwindSafe for JsSegmentOptions
impl Send for JsSegmentOptions
impl Sync for JsSegmentOptions
impl Unpin for JsSegmentOptions
impl UnsafeUnpin for JsSegmentOptions
impl UnwindSafe for JsSegmentOptions
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