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]

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

Convert this type into a struct.

[src]

Convert this type into an enum.

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

Check if type is an enum.

[src]

Get type as optional.

Trait Implementations

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

[src]

Convert the type into tokens.

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

[src]

Convert the type into tokens.

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

[src]

Convert the type into tokens.

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

[src]

Convert the type into tokens.

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

[src]

Convert the type into tokens.

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

[src]

Convert the type into tokens.

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

[src]

Convert the type into tokens.

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

[src]

Convert the type into tokens.

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

[src]

Formats the value using the given formatter. Read more

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.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.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> From<Csharp<'el>> for Tokens<'el, Csharp<'el>>
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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.

Auto Trait Implementations

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

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