pub struct CustomLang {
pub library_path: LibraryPath,
pub language_symbol: Option<String>,
pub meta_var_char: Option<char>,
pub expando_char: Option<char>,
pub extensions: Vec<String>,
}
Fields§
§library_path: LibraryPath
§language_symbol: Option<String>
the dylib symbol to load ts-language, default is tree_sitter_{name}
meta_var_char: Option<char>
§expando_char: Option<char>
§extensions: Vec<String>
Implementations§
Source§impl CustomLang
impl CustomLang
pub fn register( base: &Path, langs: HashMap<String, CustomLang>, ) -> Result<(), DynamicLangError>
Trait Implementations§
Source§impl Clone for CustomLang
impl Clone for CustomLang
Source§fn clone(&self) -> CustomLang
fn clone(&self) -> CustomLang
Returns a duplicate 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<'de> Deserialize<'de> for CustomLang
impl<'de> Deserialize<'de> for CustomLang
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
Auto Trait Implementations§
impl Freeze for CustomLang
impl RefUnwindSafe for CustomLang
impl Send for CustomLang
impl Sync for CustomLang
impl Unpin for CustomLang
impl UnwindSafe for CustomLang
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