pub struct LanguageConfig {
pub extensions: Vec<String>,
pub enabled: bool,
pub custom_boundaries: Vec<String>,
pub always_include: Vec<String>,
pub ignore_patterns: Vec<String>,
}Expand description
Language-specific atomizer configuration
Fields§
§extensions: Vec<String>File extensions for this language
enabled: boolWhether to treat this language specially
custom_boundaries: Vec<String>Custom atom boundaries (e.g., specific decorators in Python)
always_include: Vec<String>Symbols to always include in context
ignore_patterns: Vec<String>Patterns to ignore
Implementations§
Source§impl LanguageConfig
impl LanguageConfig
pub fn rust() -> Self
pub fn typescript() -> Self
pub fn python() -> Self
pub fn tsx() -> Self
pub fn jsx() -> Self
pub fn html() -> Self
pub fn css() -> Self
pub fn c() -> Self
pub fn cpp() -> Self
pub fn csharp() -> Self
pub fn glsl() -> Self
pub fn wgsl() -> Self
Trait Implementations§
Source§impl Clone for LanguageConfig
impl Clone for LanguageConfig
Source§fn clone(&self) -> LanguageConfig
fn clone(&self) -> LanguageConfig
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 Debug for LanguageConfig
impl Debug for LanguageConfig
Source§impl Default for LanguageConfig
impl Default for LanguageConfig
Source§fn default() -> LanguageConfig
fn default() -> LanguageConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LanguageConfig
impl<'de> Deserialize<'de> for LanguageConfig
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 LanguageConfig
impl RefUnwindSafe for LanguageConfig
impl Send for LanguageConfig
impl Sync for LanguageConfig
impl Unpin for LanguageConfig
impl UnwindSafe for LanguageConfig
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