Struct ast_grep_napi::FileOption
source · pub struct FileOption {
pub paths: Vec<String>,
pub language_globs: HashMap<String, Vec<String>>,
}
Fields§
§paths: Vec<String>
§language_globs: HashMap<String, Vec<String>>
Trait Implementations§
source§impl FromNapiValue for FileOption
impl FromNapiValue for FileOption
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 FileOption
impl ToNapiValue for FileOption
source§unsafe fn to_napi_value(env: napi_env, val: FileOption) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: FileOption) -> Result<napi_value>
Safety Read more
source§impl TypeName for FileOption
impl TypeName for FileOption
source§impl ValidateNapiValue for FileOption
impl ValidateNapiValue for FileOption
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 FileOption
impl RefUnwindSafe for FileOption
impl Send for FileOption
impl Sync for FileOption
impl Unpin for FileOption
impl UnwindSafe for FileOption
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