Trait reproto_backend::Converter [] [src]

pub trait Converter<'el> {
    type Custom: 'el + Custom + Clone;
    fn convert_type(
        &self,
        name: &'el RpName
    ) -> Result<Tokens<'el, Self::Custom>>; fn convert_constant(
        &self,
        name: &'el RpName
    ) -> Result<Tokens<'el, Self::Custom>> { ... }
fn ordinal<'a>(
        &self,
        variant: &'a RpEnumVariant
    ) -> Result<Tokens<'el, Self::Custom>> { ... } }

Associated Types

Required Methods

Provided Methods

Build an ordinal value.

Implementors