Struct ast_grep_napi::NapiConfig
source · [−]pub struct NapiConfig {
pub rule: Value,
pub constraints: Option<Value>,
pub language: Option<FrontEndLanguage>,
}
Fields
rule: Value
constraints: Option<Value>
language: Option<FrontEndLanguage>
Trait Implementations
sourceimpl FromNapiValue for NapiConfig
impl FromNapiValue for NapiConfig
sourceunsafe 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>
sourceimpl ToNapiValue for NapiConfig
impl ToNapiValue for NapiConfig
sourceunsafe fn to_napi_value(env: napi_env, val: NapiConfig) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: NapiConfig) -> Result<napi_value>
Safety Read more
sourceimpl TypeName for NapiConfig
impl TypeName for NapiConfig
Auto Trait Implementations
impl RefUnwindSafe for NapiConfig
impl Send for NapiConfig
impl Sync for NapiConfig
impl Unpin for NapiConfig
impl UnwindSafe for NapiConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more