Struct genco::java::Enum [] [src]

pub struct Enum<'el> {
    pub variants: Tokens<'el, Java<'el>>,
    pub modifiers: Vec<Modifier>,
    pub fields: Vec<Field<'el>>,
    pub constructors: Vec<Constructor<'el>>,
    pub methods: Vec<Method<'el>>,
    pub body: Tokens<'el, Java<'el>>,
    pub extends: Option<Tokens<'el, Java<'el>>>,
    pub implements: Vec<Tokens<'el, Java<'el>>>,
    // some fields omitted
}

Model for Java Enums.

Fields

Variants of the enum.

Enum modifiers.

Declared methods.

Declared methods.

Declared methods.

Extra body (at end of enum).

What this enum extends.

What this enum implements.

Methods

impl<'el> Enum<'el>
[src]

[src]

Build a new empty interface.

[src]

Push an annotation.

[src]

Name of enum.

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'el> IntoTokens<'el, Java<'el>> for Enum<'el>
[src]

[src]

Convert the type into tokens.