Struct proc_macro2::LineColumn

source ·
pub struct LineColumn {
    pub line: usize,
    pub column: usize,
}
Expand description

A line-column pair representing the start or end of a Span.

This type is semver exempt and not exposed by default.

Fields

line: usize

The 1-indexed line in the source file on which the span starts or ends (inclusive).

column: usize

The 0-indexed column (in UTF-8 characters) in the source file on which the span starts or ends (inclusive).

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.