pub enum Line {
    Macro {
        indent: String,
        name: String,
    },
    Source {
        indent: String,
        source: String,
    },
}
Expand description

A Source represents the source code on a line.

Variants

Macro

Fields

indent: String

Indentation of the line, without block indent

name: String

Name of the macro

A macro invocation

Source

Fields

indent: String

Indentation of the line, without block indent

source: String

Source code in the line

A line of source code

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.