Struct ast_grep_napi::ParseAsync
source · pub struct ParseAsync { /* private fields */ }
Trait Implementations§
source§impl Task for ParseAsync
impl Task for ParseAsync
type Output = SgRoot
type JsValue = SgRoot
source§fn resolve(&mut self, _env: Env, output: Self::Output) -> Result<Self::JsValue>
fn resolve(&mut self, _env: Env, output: Self::Output) -> Result<Self::JsValue>
Into this method if
compute
return Ok
source§fn reject(&mut self, _env: Env, err: Error) -> Result<Self::JsValue, Error>
fn reject(&mut self, _env: Env, err: Error) -> Result<Self::JsValue, Error>
Into this method if
compute
return Err
fn finally(&mut self, _env: Env) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for ParseAsync
impl RefUnwindSafe for ParseAsync
impl Send for ParseAsync
impl Sync for ParseAsync
impl Unpin for ParseAsync
impl UnwindSafe for ParseAsync
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