pub enum DefinitionBody {
TypeAlias {
generics: Vec<Generic>,
annotation: Annotation,
methods: MethodSignatures,
},
Enum {
generics: Vec<Generic>,
variants: Vec<EnumVariant>,
methods: MethodSignatures,
},
ValueEnum {
variants: Vec<ValueEnumVariant>,
underlying_ty: Option<Type>,
methods: MethodSignatures,
},
Struct {
generics: Vec<Generic>,
fields: Vec<StructFieldDefinition>,
kind: StructKind,
methods: MethodSignatures,
constructor: Option<Type>,
},
Interface {
definition: Interface,
},
Value {
allowed_lints: Vec<String>,
go_hints: Vec<String>,
go_name: Option<String>,
},
}Variants§
TypeAlias
Enum
ValueEnum
Struct
Interface
Value
Trait Implementations§
Source§impl Clone for DefinitionBody
impl Clone for DefinitionBody
Source§fn clone(&self) -> DefinitionBody
fn clone(&self) -> DefinitionBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DefinitionBody
impl RefUnwindSafe for DefinitionBody
impl Send for DefinitionBody
impl Sync for DefinitionBody
impl Unpin for DefinitionBody
impl UnsafeUnpin for DefinitionBody
impl UnwindSafe for DefinitionBody
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