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

pub enum Csharp<'el> {
    Simple {
        name: &'static str,
        alias: &'static str,
    },
    Array(Box<Csharp<'el>>),
    Struct(Type<'el>),
    Void,
    Class(Type<'el>),
    Enum(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.

An enum of some type.

A local name with no specific qualification.

Fields of Local

Name of class.

Optional type.

Methods

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

Convert this type into a struct.

Convert this type into an enum.

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

Compare if two types are equal.

Get the name of the type.

Get the name of the type.

Get the arguments

Get the value type (strips optionality).

Check if type is optional.

Check if type is nullable.

Check if variable is simple.

Check if type is array.

Check if type is struct.

Check if type is an enum.

Get type as optional.

Trait Implementations

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Convert the type into tokens.

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Performs the conversion.

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

Performs the conversion.

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

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