Enum go_away::GoType [−][src]
pub enum GoType<'a> {
Struct(&'a Struct),
NewType(&'a NewType),
Alias(&'a Alias),
Enum(&'a Enum),
Union(&'a Union),
}
Expand description
An enum representing the possible top-level types in Golang
This shouldn’t be instaniated directly but passed using turbofish operator to registry_to_output enabling it to write out in Golang
Variants
Struct(&'a Struct)
A struct variant
Tuple Fields of Struct
0: &'a Struct
NewType(&'a NewType)
A new type variant
Tuple Fields of NewType
0: &'a NewType
Alias(&'a Alias)
A type alias variant
Tuple Fields of Alias
0: &'a Alias
Enum(&'a Enum)
A simple enum variant (does not contain data)
Tuple Fields of Enum
0: &'a Enum
Union(&'a Union)
A union variant (enums with data)
Tuple Fields of Union
0: &'a Union