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

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

Python token specialization.

Variants

An imported module.

Fields of Imported

Module of the imported name.

Alias of module.

Name imported.

If None, last component of module will be used.

Methods

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

[src]

Set alias for python element.

[src]

Set name for python element.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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.

Auto Trait Implementations

impl<'el> Send for Python<'el>

impl<'el> Sync for Python<'el>