Struct libdiffsitter::parse::GrammarConfig
source · pub struct GrammarConfig {
pub dylib_overrides: Option<HashMap<String, String>>,
pub file_associations: Option<HashMap<String, String>>,
}
Expand description
Configuration options pertaining to loading grammars and parsing files.
Fields§
§dylib_overrides: Option<HashMap<String, String>>
Set which dynamic library files should be used for different languages.
This is a mapping from language strings to absolute file paths, relative filepaths, or file names.
file_associations: Option<HashMap<String, String>>
Override the languages that get resolved for different extensions.
This is a mapping from extension names to language strings. For example:
"cpp" => "cpp"
Trait Implementations§
source§impl Clone for GrammarConfig
impl Clone for GrammarConfig
source§fn clone(&self) -> GrammarConfig
fn clone(&self) -> GrammarConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GrammarConfig
impl Debug for GrammarConfig
source§impl Default for GrammarConfig
impl Default for GrammarConfig
source§fn default() -> GrammarConfig
fn default() -> GrammarConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GrammarConfig
impl<'de> Deserialize<'de> for GrammarConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<GrammarConfig> for GrammarConfig
impl PartialEq<GrammarConfig> for GrammarConfig
source§fn eq(&self, other: &GrammarConfig) -> bool
fn eq(&self, other: &GrammarConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GrammarConfig
impl Serialize for GrammarConfig
impl Eq for GrammarConfig
impl StructuralEq for GrammarConfig
impl StructuralPartialEq for GrammarConfig
Auto Trait Implementations§
impl RefUnwindSafe for GrammarConfig
impl Send for GrammarConfig
impl Sync for GrammarConfig
impl Unpin for GrammarConfig
impl UnwindSafe for GrammarConfig
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