Struct reproto_core::RpTypeBody
[−]
[src]
pub struct RpTypeBody<F: 'static> where
F: Flavor, { pub name: F::Name, pub ident: String, pub comment: Vec<String>, pub decls: Vec<RpDecl<F>>, pub fields: Vec<Loc<F::Field>>, pub codes: Vec<Loc<RpCode>>, }
Fields
name: F::Name
ident: String
comment: Vec<String>
decls: Vec<RpDecl<F>>
fields: Vec<Loc<F::Field>>
codes: Vec<Loc<RpCode>>
Methods
impl<F> RpTypeBody<F> where
F: Flavor,
[src]
F: Flavor,
Trait Implementations
impl<F: Debug + 'static> Debug for RpTypeBody<F> where
F: Flavor,
F::Name: Debug,
F::Field: Debug,
[src]
F: Flavor,
F::Name: Debug,
F::Field: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Clone + 'static> Clone for RpTypeBody<F> where
F: Flavor,
F::Name: Clone,
F::Field: Clone,
[src]
F: Flavor,
F::Name: Clone,
F::Field: Clone,
fn clone(&self) -> RpTypeBody<F>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<F: 'static, T> Translate<T> for RpTypeBody<F> where
F: Flavor,
T: Translator<Source = F>,
[src]
F: Flavor,
T: Translator<Source = F>,
type Source = F
type Out = RpTypeBody<T::Target>
fn translate(self, translator: &T) -> Result<RpTypeBody<T::Target>>
[src]
Translate into different flavor.