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

Provided Methods

Build an ordinal value.

Implementors