pub struct RpInterfaceBody<F>where
F: Flavor + 'static,{
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_types: Vec<Loc<RpSubType<F>>>,
pub sub_type_strategy: RpSubTypeStrategy,
}
Fields§
§name: F::Name
§ident: String
§comment: Vec<String>
§decls: Vec<RpDecl<F>>
§fields: Vec<Loc<F::Field>>
§codes: Vec<Loc<RpCode>>
§sub_types: Vec<Loc<RpSubType<F>>>
§sub_type_strategy: RpSubTypeStrategy
Implementations§
Trait Implementations§
Source§impl<F> Clone for RpInterfaceBody<F>
impl<F> Clone for RpInterfaceBody<F>
Source§fn clone(&self) -> RpInterfaceBody<F>
fn clone(&self) -> RpInterfaceBody<F>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F> Debug for RpInterfaceBody<F>
impl<F> Debug for RpInterfaceBody<F>
Source§impl<F> Serialize for RpInterfaceBody<F>
impl<F> Serialize for RpInterfaceBody<F>
Source§impl<F, T> Translate<T> for RpInterfaceBody<F>where
F: Flavor + 'static,
T: Translator<Source = F>,
impl<F, T> Translate<T> for RpInterfaceBody<F>where
F: Flavor + 'static,
T: Translator<Source = F>,
Source§fn translate(
self,
diag: &mut Diagnostics,
translator: &T,
) -> Result<RpInterfaceBody<T::Target>>
fn translate( self, diag: &mut Diagnostics, translator: &T, ) -> Result<RpInterfaceBody<T::Target>>
Translate into different flavor.
type Source = F
type Out = RpInterfaceBody<<T as Translator>::Target>
Auto Trait Implementations§
impl<F> Freeze for RpInterfaceBody<F>
impl<F> RefUnwindSafe for RpInterfaceBody<F>where
<F as Flavor>::Name: RefUnwindSafe,
<F as Flavor>::Field: RefUnwindSafe,
<F as Flavor>::EnumType: RefUnwindSafe,
<F as Flavor>::Endpoint: RefUnwindSafe,
impl<F> Send for RpInterfaceBody<F>
impl<F> Sync for RpInterfaceBody<F>
impl<F> Unpin for RpInterfaceBody<F>
impl<F> UnwindSafe for RpInterfaceBody<F>where
<F as Flavor>::Name: UnwindSafe,
<F as Flavor>::Field: UnwindSafe,
<F as Flavor>::EnumType: UnwindSafe,
<F as Flavor>::Endpoint: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more