Struct ast_grep_napi::Pos
source · [−]Fields
line: u32
line number starting from 1
column: u32
column number starting from 1
index: u32
byte offset of the position
Trait Implementations
sourceimpl FromNapiValue for Pos
impl FromNapiValue for Pos
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 Pos
impl ToNapiValue for Pos
sourceunsafe fn to_napi_value(env: napi_env, val: Pos) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Pos) -> Result<napi_value>
Safety Read more
Auto Trait Implementations
impl RefUnwindSafe for Pos
impl Send for Pos
impl Sync for Pos
impl Unpin for Pos
impl UnwindSafe for Pos
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