Struct zed2::languages::LanguageConfig
source · pub struct LanguageConfig {Show 15 fields
pub name: Arc<str, Global>,
pub path_suffixes: Vec<String, Global>,
pub brackets: BracketPairConfig,
pub first_line_pattern: Option<Regex>,
pub auto_indent_using_last_non_empty_line: bool,
pub increase_indent_pattern: Option<Regex>,
pub decrease_indent_pattern: Option<Regex>,
pub autoclose_before: String,
pub line_comment: Option<Arc<str, Global>>,
pub collapsed_placeholder: String,
pub block_comment: Option<(Arc<str, Global>, Arc<str, Global>)>,
pub scope_opt_in_language_servers: Vec<String, Global>,
pub overrides: HashMap<String, LanguageConfigOverride, RandomState>,
pub word_characters: HashSet<char, RandomState>,
pub prettier_parser_name: Option<String>,
}
Fields§
§name: Arc<str, Global>
§path_suffixes: Vec<String, Global>
§brackets: BracketPairConfig
§first_line_pattern: Option<Regex>
§auto_indent_using_last_non_empty_line: bool
§increase_indent_pattern: Option<Regex>
§decrease_indent_pattern: Option<Regex>
§autoclose_before: String
§line_comment: Option<Arc<str, Global>>
§collapsed_placeholder: String
§block_comment: Option<(Arc<str, Global>, Arc<str, Global>)>
§scope_opt_in_language_servers: Vec<String, Global>
§overrides: HashMap<String, LanguageConfigOverride, RandomState>
§word_characters: HashSet<char, RandomState>
§prettier_parser_name: Option<String>
Trait Implementations§
source§impl Clone for LanguageConfig
impl Clone for LanguageConfig
source§fn clone(&self) -> LanguageConfig
fn clone(&self) -> LanguageConfig
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 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<LanguageConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<LanguageConfig, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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