Trait hyper_ast::types::LangRef

source ·
pub trait LangRef<T> {
    // Required methods
    fn name(&self) -> &'static str;
    fn make(&self, t: u16) -> &'static T;
    fn to_u16(&self, t: T) -> u16;
}

Required Methods§

source

fn name(&self) -> &'static str

source

fn make(&self, t: u16) -> &'static T

source

fn to_u16(&self, t: T) -> u16

Trait Implementations§

source§

impl<T> From<&'static dyn LangRef<T>> for LangWrapper<T>

source§

fn from(value: &'static (dyn LangRef<T> + 'static)) -> Self

Converts to this type from the input type.

Implementors§

source§

impl<T> LangRef<T> for LangWrapper<T>