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

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.