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]

[src]

Formats the value using the given formatter. Read more

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

1.3.0
[src]

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

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

[src]

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

[src]

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.

[src]

Format the custom element.

[src]

Performing quoting according to convention set by custom element.

[src]

Write a file according to convention by custom element.

Auto Trait Implementations

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

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