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. Read more

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> From<Enum<'el>> for Tokens<'el, Java<'el>>
[src]

[src]

Performs the conversion.

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

[src]

Convert the type into tokens.

Auto Trait Implementations

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

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