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]

[src]

Extend the type with a nested path.

This discards any arguments associated with it.

[src]

Add arguments to the given variable.

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

[src]

Get a guaranteed boxed version of a type.

[src]

Compare if two types are equal.

[src]

Get the name of the type.

[src]

Get the name of the type.

[src]

Get the arguments

[src]

Check if type is optional.

[src]

Get type as optional.

[src]

Get the field type (includes optionality).

[src]

Get the value type (strips optionality).

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

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

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