Trait reproto_backend::Converter
[−]
[src]
pub trait Converter<'el> { type Custom: 'el + Custom + Clone; fn convert_type(&self, name: &RpName) -> Result<Tokens<'el, Self::Custom>>; fn convert_constant(
&self,
name: &RpName
) -> Result<Tokens<'el, Self::Custom>> { ... } fn ordinal(&self, variant: &RpVariant) -> Result<Tokens<'el, Self::Custom>> { ... } }
Associated Types
Required Methods
fn convert_type(&self, name: &RpName) -> Result<Tokens<'el, Self::Custom>>
Provided Methods
fn convert_constant(&self, name: &RpName) -> Result<Tokens<'el, Self::Custom>>
fn ordinal(&self, variant: &RpVariant) -> Result<Tokens<'el, Self::Custom>>
Build an ordinal value.