Enum genco::Element [] [src]

pub enum Element<'el, C: 'el> {
    Rc(Rc<Element<'el, C>>),
    Borrowed(&'el Element<'el, C>),
    Append(Con<'el, Tokens<'el, C>>),
    Push(Con<'el, Tokens<'el, C>>),
    Nested(Con<'el, Tokens<'el, C>>),
    Literal(Cons<'el>),
    Quoted(Cons<'el>),
    Custom(Con<'el, C>),
    PushSpacing,
    Spacing,
    LineSpacing,
}

A single element in a set of tokens.

Variants

A refcounted member.

A borrowed element.

Append the given set of tokens.

Append the given set of tokens in a PushSpacing way.

Append the given set of tokens in a nested way.

A borrowed string.

A borrowed quoted string.

Language-specific items.

Push an empty line.

Single-space spacing.

New line if needed.

Methods

impl<'el, C: Custom> Element<'el, C>
[src]

[src]

Format the given element.

Trait Implementations

impl<'el, C: Debug + 'el> Debug for Element<'el, C>
[src]

[src]

Formats the value using the given formatter.

impl<'el, C: Clone + 'el> Clone for Element<'el, C>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'el, C: PartialEq + 'el> PartialEq for Element<'el, C>
[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, C: Eq + 'el> Eq for Element<'el, C>
[src]

impl<'el, C: Custom> From<C> for Element<'el, C>
[src]

[src]

Performs the conversion.

impl<'el, C: Custom> From<&'el C> for Element<'el, C>
[src]

[src]

Performs the conversion.

impl<'el, C> From<String> for Element<'el, C>
[src]

[src]

Performs the conversion.

impl<'el, C> From<&'el str> for Element<'el, C>
[src]

[src]

Performs the conversion.

impl<'el, C> From<Rc<String>> for Element<'el, C>
[src]

[src]

Performs the conversion.

impl<'el, C> From<Cons<'el>> for Element<'el, C>
[src]

[src]

Performs the conversion.

impl<'el, C> From<&'el Element<'el, C>> for Element<'el, C>
[src]

[src]

Performs the conversion.

impl<'el, C> From<Rc<Element<'el, C>>> for Element<'el, C>
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl<'el, C> From<Rc<Tokens<'el, C>>> for Element<'el, C>
[src]

[src]

Performs the conversion.

impl<'el, C> IntoTokens<'el, C> for Element<'el, C>
[src]

Convert element to tokens.

[src]

Convert the type into tokens.

impl<'el> From<Field<'el>> for Element<'el, Java<'el>>
[src]

[src]

Performs the conversion.

impl<'el, C: Custom> From<Vec<Modifier>> for Element<'el, C>
[src]

[src]

Performs the conversion.