pub struct LanguageProvider {
pub module: String,
pub language: String,
pub extensions: Vec<String>,
pub form: Form,
pub default: bool,
}Expand description
One module’s claim to run a language.
Fields§
§module: StringThe module’s declared name, the one the loader opens it by.
language: StringThe language it runs.
extensions: Vec<String>The file extensions the language owns, without the dot.
form: FormThe form it runs a program in.
default: boolWhether the language is the one an inline <script> block is read as.
Trait Implementations§
Source§impl Clone for LanguageProvider
impl Clone for LanguageProvider
Source§fn clone(&self) -> LanguageProvider
fn clone(&self) -> LanguageProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LanguageProvider
impl Debug for LanguageProvider
Source§impl PartialEq for LanguageProvider
impl PartialEq for LanguageProvider
Source§fn eq(&self, other: &LanguageProvider) -> bool
fn eq(&self, other: &LanguageProvider) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LanguageProvider
impl StructuralPartialEq for LanguageProvider
Auto Trait Implementations§
impl Freeze for LanguageProvider
impl RefUnwindSafe for LanguageProvider
impl Send for LanguageProvider
impl Sync for LanguageProvider
impl Unpin for LanguageProvider
impl UnsafeUnpin for LanguageProvider
impl UnwindSafe for LanguageProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DynEq for T
impl<T> DynEq for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.