Struct clang::source::Location [] [src]

pub struct Location<'tu> {
    pub file: Option<File<'tu>>,
    pub line: u32,
    pub column: u32,
    pub offset: u32,
}

The file, line, column, and character offset of a source location.

Fields

The file of the source location, if it has any.

The line of the source location.

The column of the source location.

The character offset of the source location.

Trait Implementations

impl<'tu> Copy for Location<'tu>
[src]

impl<'tu> Clone for Location<'tu>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'tu> Debug for Location<'tu>
[src]

[src]

Formats the value using the given formatter.

impl<'tu> PartialEq for Location<'tu>
[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<'tu> Eq for Location<'tu>
[src]

impl<'tu> Hash for Location<'tu>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more