pub trait MetaLanguages {
type MetaLanguage: MetaLanguage + ?Sized;
Show 13 methods
// Required methods
fn get(&self, lang: &str) -> Result<&Self::MetaLanguage>;
fn get_mut(&mut self, lang: &str) -> Result<&mut Self::MetaLanguage>;
// Provided methods
fn lift_str(&self, lang: &str, target: &str) -> Result<&'static str> { ... }
fn reduce_str(&self, lang: &str, target: &str) -> Result<&'static str> { ... }
fn reduce_method_str(
&self,
lang: &str,
target: &str,
) -> Result<&'static str> { ... }
fn emit_str(&self, lang: &str) -> Result<&'static str> { ... }
fn lift_str_in(
&self,
lang: &str,
target: &str,
repr: Repr,
) -> Result<&'static str> { ... }
fn emit_str_in(&self, lang: &str, repr: Repr) -> Result<&'static str> { ... }
fn type_str(&self, lang: &str) -> Result<&'static str> { ... }
fn name_str(&self, lang: &str) -> Result<&'static str> { ... }
fn type_method_str(&self, lang: &str) -> Result<&'static str> { ... }
fn spawn_str(&self, lang: &str, target: &str) -> Result<String> { ... }
fn prelude(&self, lang: &str, targets: &[&str]) -> Result<Option<Prelude>> { ... }
}Required Associated Types§
type MetaLanguage: MetaLanguage + ?Sized
Required Methods§
fn get(&self, lang: &str) -> Result<&Self::MetaLanguage>
fn get_mut(&mut self, lang: &str) -> Result<&mut Self::MetaLanguage>
Provided Methods§
fn lift_str(&self, lang: &str, target: &str) -> Result<&'static str>
fn reduce_str(&self, lang: &str, target: &str) -> Result<&'static str>
fn reduce_method_str(&self, lang: &str, target: &str) -> Result<&'static str>
fn emit_str(&self, lang: &str) -> Result<&'static str>
fn lift_str_in( &self, lang: &str, target: &str, repr: Repr, ) -> Result<&'static str>
fn emit_str_in(&self, lang: &str, repr: Repr) -> Result<&'static str>
fn type_str(&self, lang: &str) -> Result<&'static str>
fn name_str(&self, lang: &str) -> Result<&'static str>
fn type_method_str(&self, lang: &str) -> Result<&'static str>
fn spawn_str(&self, lang: &str, target: &str) -> Result<String>
fn prelude(&self, lang: &str, targets: &[&str]) -> Result<Option<Prelude>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".