Struct reproto_core::RpSubType
[−]
[src]
pub struct RpSubType<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>>, pub sub_type_name: Option<Loc<String>>, }
Fields
name: F::Name
ident: String
comment: Vec<String>
decls: Vec<RpDecl<F>>
Inner declarations.
fields: Vec<Loc<F::Field>>
codes: Vec<Loc<RpCode>>
sub_type_name: Option<Loc<String>>
Methods
impl<F: 'static> RpSubType<F> where
F: Flavor,
[src]
F: Flavor,
pub fn name(&self) -> &str
[src]
pub fn discriminating_fields(&self) -> DiscriminatingFields<F>
[src]
Access the set of fields which are used to make this sub-type unique.
Trait Implementations
impl<F: Debug + 'static> Debug for RpSubType<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 RpSubType<F> where
F: Flavor,
F::Name: Clone,
F::Field: Clone,
[src]
F: Flavor,
F::Name: Clone,
F::Field: Clone,
fn clone(&self) -> RpSubType<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 RpSubType<F> where
F: Flavor,
T: Translator<Source = F>,
[src]
F: Flavor,
T: Translator<Source = F>,
Auto Trait Implementations
impl<F> Send for RpSubType<F> where
<F as Flavor>::Endpoint: Send,
<F as Flavor>::EnumType: Send,
<F as Flavor>::Field: Send,
<F as Flavor>::Name: Send,
<F as Flavor>::Endpoint: Send,
<F as Flavor>::EnumType: Send,
<F as Flavor>::Field: Send,
<F as Flavor>::Name: Send,
impl<F> Sync for RpSubType<F> where
<F as Flavor>::Endpoint: Sync,
<F as Flavor>::EnumType: Sync,
<F as Flavor>::Field: Sync,
<F as Flavor>::Name: Sync,
<F as Flavor>::Endpoint: Sync,
<F as Flavor>::EnumType: Sync,
<F as Flavor>::Field: Sync,
<F as Flavor>::Name: Sync,