Enum genco::python::Python [] [src]

pub enum Python<'el> {
    Imported {
        module: Cow<'el, str>,
        name: Cow<'el, str>,
    },
    ImportedAlias {
        module: Cow<'el, str>,
        name: Cow<'el, str>,
        alias: Cow<'el, str>,
    },
}

Python token specialization.

Variants

An imported name.

Fields of Imported

Module of the imported name.

Name imported.

An imported module as an alias.

Fields of ImportedAlias

Module of the imported name.

Name imported.

Alias of module.

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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