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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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

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

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

Auto Trait Implementations

impl<'tu> !Send for Location<'tu>

impl<'tu> !Sync for Location<'tu>