pub trait MprotoLang {
type GencoLang: Lang;
// Required methods
fn associated_constant(
type_name: &str,
constant: &str,
) -> Tokens<Self::GencoLang>;
fn type_param_base_len(type_name: &str) -> Tokens<Self::GencoLang>;
fn const_fn_max() -> Tokens<Self::GencoLang>;
fn import_qualified(
db: &Database,
local_def_source: Option<&str>,
qualified_identifier: &QualifiedIdentifier,
) -> Tokens<Self::GencoLang>;
}Required Associated Types§
Required Methods§
fn associated_constant( type_name: &str, constant: &str, ) -> Tokens<Self::GencoLang>
fn type_param_base_len(type_name: &str) -> Tokens<Self::GencoLang>
fn const_fn_max() -> Tokens<Self::GencoLang>
fn import_qualified( db: &Database, local_def_source: Option<&str>, qualified_identifier: &QualifiedIdentifier, ) -> Tokens<Self::GencoLang>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".