Enum genco::java::Java[][src]

pub enum Java<'el> {
    Primitive {
        boxed: &'static str,
        primitive: &'static str,
    },
    Class(Type<'el>),
    Local {
        name: Cons<'el>,
    },
    Optional(Optional<'el>),
}

Java token specialization.

Variants

Primitive type.

Fields of Primitive

The boxed variant of the primitive type.

The primitive-primitive type.

A class, with or without arguments, imported from somewhere.

A local name with no specific qualification.

Fields of Local

Name of class.

Optional type.

Methods

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

Extend the type with a nested path.

This discards any arguments associated with it.

Add arguments to the given variable.

Only applies to classes, any other will return the same value.

Get the raw type.

A raw type is one without generic arguments.

Get a guaranteed boxed version of a type.

Compare if two types are equal.

Get the name of the type.

Get the name of the type.

Get the arguments

Check if type is optional.

Check if variable is primitive.

Get type as optional.

Get the field type (includes optionality).

Get the value type (strips optionality).

Check if type is generic.

Trait Implementations

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

Convert the type into tokens.

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

Convert the type into tokens.

impl<'el> IntoTokens<'el, Java<'el>> for (Cons<'el>, Constructor<'el>)
[src]

Convert the type into tokens.

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'el> Hash for Java<'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 Java<'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 Java<'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 Java<'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 Java<'el>
[src]

impl<'el> From<Java<'el>> for Tokens<'el, Java<'el>>
[src]

Performs the conversion.

impl<'el> From<&'el Java<'el>> for Tokens<'el, Java<'el>>
[src]

Performs the conversion.

impl<'el> Custom for Java<'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 Java<'el>

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