Enum genco::go::Go[][src]

pub enum Go<'el> {
    Type {
        name: Name<'el>,
    },
    Map {
        key: Box<Go<'el>>,
        value: Box<Go<'el>>,
    },
    Array {
        inner: Box<Go<'el>>,
    },
    Interface,
}

Go token specialization.

Variants

A regular type.

Fields of Type

The name being referenced.

A map, map[].

Fields of Map

Key of the map.

Value of the map.

An array, [].

Fields of Array

Inner value of the array.

An interface type, interface{}.

Trait Implementations

impl<'el> Debug for Go<'el>
[src]

Formats the value using the given formatter. Read more

impl<'el> Clone for Go<'el>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'el> Hash for Go<'el>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'el> PartialOrd for Go<'el>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'el> Ord for Go<'el>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<'el> PartialEq for Go<'el>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'el> Eq for Go<'el>
[src]

impl<'el> Custom for Go<'el>
[src]

Extra data associated with building a formatting element.

Format the custom element.

Performing quoting according to convention set by custom element.

Write a file according to convention by custom element.

Auto Trait Implementations

impl<'el> !Send for Go<'el>

impl<'el> !Sync for Go<'el>