Enum genco::csharp::Csharp [] [src]

pub enum Csharp<'el> {
    Simple {
        name: &'static str,
        alias: &'static str,
    },
    Array(Box<Csharp<'el>>),
    Struct(Box<Csharp<'el>>),
    Void,
    Class(Type<'el>),
    Local {
        name: Cons<'el>,
    },
    Optional(Box<Csharp<'el>>),
}

Csharp token specialization.

Variants

Simple type.

Fields of Simple

The name of the simple type.

Their .NET aliases.

An array of some type.

A struct of some type.

The special void type.

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

A local name with no specific qualification.

Fields of Local

Name of class.

Optional type.

Methods

impl<'el> Csharp<'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]

Make this type into a qualified type that is always used with a namespace.

[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]

Get the value type (strips optionality).

[src]

Check if type is optional.

[src]

Check if type is nullable.

[src]

Check if variable is simple.

[src]

Check if type is array.

[src]

Check if type is struct.

[src]

Get type as optional.

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

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