pub struct LanguageContext {
pub contexts: Vec<String>,
pub language: ScriptLanguage,
}Fields§
§contexts: Vec<String>§language: ScriptLanguageImplementations§
Source§impl LanguageContext
impl LanguageContext
pub fn new(contexts: Vec<String>, language: ScriptLanguage) -> LanguageContext
Trait Implementations§
Source§impl Clone for LanguageContext
impl Clone for LanguageContext
Source§fn clone(&self) -> LanguageContext
fn clone(&self) -> LanguageContext
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 LanguageContext
impl Debug for LanguageContext
Source§impl Default for LanguageContext
impl Default for LanguageContext
Source§fn default() -> LanguageContext
fn default() -> LanguageContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LanguageContext
impl<'de> Deserialize<'de> for LanguageContext
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
Source§impl PartialEq for LanguageContext
impl PartialEq for LanguageContext
Source§fn eq(&self, other: &LanguageContext) -> bool
fn eq(&self, other: &LanguageContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LanguageContext
impl Serialize for LanguageContext
impl StructuralPartialEq for LanguageContext
Auto Trait Implementations§
impl Freeze for LanguageContext
impl RefUnwindSafe for LanguageContext
impl Send for LanguageContext
impl Sync for LanguageContext
impl Unpin for LanguageContext
impl UnsafeUnpin for LanguageContext
impl UnwindSafe for LanguageContext
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