pub struct LanguageDefinition {
pub name: LanguageId,
pub extensions: Vec<String>,
pub first_line_match: Option<String>,
pub scope: String,
pub default_config: Option<Table>,
}
Expand description
Describes a LanguageDefinition
. Although these are provided by plugins,
they are a fundamental concept in core, used to determine things like
plugin activations and active user config tables.
Fields§
§name: LanguageId
§extensions: Vec<String>
§first_line_match: Option<String>
§scope: String
§default_config: Option<Table>
Trait Implementations§
Source§impl Clone for LanguageDefinition
impl Clone for LanguageDefinition
Source§fn clone(&self) -> LanguageDefinition
fn clone(&self) -> LanguageDefinition
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 LanguageDefinition
impl Debug for LanguageDefinition
Source§impl<'de> Deserialize<'de> for LanguageDefinition
impl<'de> Deserialize<'de> for LanguageDefinition
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 LanguageDefinition
impl RefUnwindSafe for LanguageDefinition
impl Send for LanguageDefinition
impl Sync for LanguageDefinition
impl Unpin for LanguageDefinition
impl UnwindSafe for LanguageDefinition
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