pub enum DefinitionBody {
TypeAlias {
generics: Vec<Generic>,
alias: AliasKind,
methods: Methods,
attributes: Attributes,
},
Enum {
generics: Vec<Generic>,
variants: EnumVariants,
methods: Methods,
attributes: Attributes,
default_variant: Option<usize>,
},
Struct {
generics: Vec<Generic>,
fields: StructFields,
methods: Methods,
attributes: Attributes,
},
Interface {
definition: Interface,
},
Value {
kind: ValueKind,
allowed_lints: Vec<String>,
go_hints: Vec<GoHint>,
go_name: Option<String>,
go_type_param_recipe: Option<Vec<GoTypeRecipe>>,
go_type_terms: Vec<GoTypeTerms>,
superseded_by: Option<String>,
impl_receiver: Option<Type>,
},
}Variants§
TypeAlias
Enum
Struct
Interface
Value
Fields
§
go_type_param_recipe: Option<Vec<GoTypeRecipe>>Go’s full type-parameter list for a #[go(collapsed_type_params)]
function, in declaration order, each entry as a Lisette type (e.g.
"Slice<E>, E"). Lets emit rebuild Go’s type arguments when the
collapsed Lisette list cannot be projected onto Go’s positionally.
§
go_type_terms: Vec<GoTypeTerms>Implementations§
Trait Implementations§
Source§impl Clone for DefinitionBody
impl Clone for DefinitionBody
Source§impl Debug for DefinitionBody
impl Debug for DefinitionBody
Source§impl PartialEq for DefinitionBody
impl PartialEq for DefinitionBody
impl StructuralPartialEq for DefinitionBody
Auto Trait Implementations§
impl Forget for DefinitionBody
impl Freeze for DefinitionBodywhere
*const u8 is !null: Freeze,
PhantomData<Generic>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Annotation>: Freeze,
*const Annotation is !null: Freeze,
*const ArcInner<Box<[Type]>> is !null: Freeze,
PhantomData<ArcInner<Box<[Type]>>>: Freeze,
*const ArcInner<FunctionType> is !null: Freeze,
PhantomData<ArcInner<FunctionType>>: Freeze,
PhantomData<Type>: Freeze,
*const Type is !null: Freeze,
*const ArcInner<Spelling> is !null: Freeze,
PhantomData<ArcInner<Spelling>>: Freeze,
*const ArcInner<HashMap<EcoString, Method, FxBuildHasher>> is !null: Freeze,
PhantomData<ArcInner<HashMap<EcoString, Method, FxBuildHasher>>>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<EnumVariant>: Freeze,
PhantomData<(EcoString, usize)>: Freeze,
PhantomData<StructFieldDefinition>: Freeze,
PhantomData<u64>: Freeze,
PhantomData<String>: Freeze,
PhantomData<GoHint>: Freeze,
PhantomData<GoTypeRecipe>: Freeze,
PhantomData<GoTypeTerms>: Freeze,
impl Move for DefinitionBody
impl RefUnwindSafe for DefinitionBody
impl Send for DefinitionBody
impl Sync for DefinitionBody
impl Unpin for DefinitionBody
impl UnsafeUnpin for DefinitionBodywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Generic>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Annotation>: UnsafeUnpin,
*const Annotation is !null: UnsafeUnpin,
*const ArcInner<Box<[Type]>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Box<[Type]>>>: UnsafeUnpin,
*const ArcInner<FunctionType> is !null: UnsafeUnpin,
PhantomData<ArcInner<FunctionType>>: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
*const ArcInner<Spelling> is !null: UnsafeUnpin,
PhantomData<ArcInner<Spelling>>: UnsafeUnpin,
*const ArcInner<HashMap<EcoString, Method, FxBuildHasher>> is !null: UnsafeUnpin,
PhantomData<ArcInner<HashMap<EcoString, Method, FxBuildHasher>>>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<EnumVariant>: UnsafeUnpin,
PhantomData<(EcoString, usize)>: UnsafeUnpin,
PhantomData<StructFieldDefinition>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<GoHint>: UnsafeUnpin,
PhantomData<GoTypeRecipe>: UnsafeUnpin,
PhantomData<GoTypeTerms>: UnsafeUnpin,
impl UnwindSafe for DefinitionBodywhere
RawVecInner: UnwindSafe,
NonNull<u8>: UnwindSafe,
BoxRaw<Annotation>: UnwindSafe,
Arc<Box<[Type]>>: UnwindSafe,
Arc<FunctionType>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
Arc<Spelling>: UnwindSafe,
Arc<HashMap<EcoString, Method, FxBuildHasher>>: UnwindSafe,
HashMap<EcoString, usize, FxBuildHasher>: UnwindSafe,
BoxRaw<GoTypeRecipe>: 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