1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//! # Helper trait for building a dynamic-language decode method use converter::Converter; use core::RpType; use core::errors::*; use genco::Tokens; pub trait BaseDecode<'el> where Self: Converter<'el>, { fn base_decode( &self, ty: &RpType, input: Tokens<'el, Self::Custom>, ) -> Result<Tokens<'el, Self::Custom>>; }