Struct ast_grep_napi::SgRoot
source · [−]pub struct SgRoot(_);
Implementations
sourceimpl SgRoot
impl SgRoot
pub fn into_reference(val: SgRoot, env: Env) -> Result<Reference<SgRoot>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<SgRoot>>
Trait Implementations
sourceimpl FromNapiMutRef for SgRoot
impl FromNapiMutRef for SgRoot
sourceunsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value
) -> Result<&'static mut Self>
Safety Read more
sourceimpl FromNapiRef for SgRoot
impl FromNapiRef for SgRoot
sourceunsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value
) -> Result<&'static Self>
unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value
) -> Result<&'static Self>
Safety Read more
sourceimpl FromNapiValue for &SgRoot
impl FromNapiValue for &SgRoot
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 FromNapiValue for &mut SgRoot
impl FromNapiValue for &mut SgRoot
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 SgRoot
impl ToNapiValue for SgRoot
sourceunsafe fn to_napi_value(env: napi_env, val: SgRoot) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: SgRoot) -> Result<napi_value>
Safety Read more
sourceimpl ValidateNapiValue for &SgRoot
impl ValidateNapiValue for &SgRoot
Auto Trait Implementations
impl RefUnwindSafe for SgRoot
impl Send for SgRoot
impl Sync for SgRoot
impl Unpin for SgRoot
impl UnwindSafe for SgRoot
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