pub struct Line { /* private fields */ }
Expand description

A type representing a single line of a Source.

Implementations

Get the offset of this line in the original Source (i.e: the number of characters that precede it).

Get the character length of this line.

Get the offset span of this line in the original Source.

Return an iterator over the characters in the line, excluding trailing whitespace.

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.