Struct clang::source::SourceLocation [] [src]

pub struct SourceLocation<'tu> { /* fields omitted */ }

A location in a source file.

Methods

impl<'tu> SourceLocation<'tu>
[src]

[src]

Returns the file, line, column and character offset of this source location.

If this source location is inside a macro expansion, the location of the macro expansion is returned instead.

[src]

Returns the file, line, column and character offset of this source location.

If this source location is inside a macro expansion, the location of the macro expansion is returned instead unless this source location is inside a macro argument. In that case, the location of the macro argument is returned.

[src]

Returns the file path, line, and column of this source location taking line directives into account.

[src]

Returns the file, line, column and character offset of this source location.

[src]

Returns the AST entity at this source location, if any.

[src]

Returns whether this source location is in the main file of its translation unit.

[src]

Returns whether this source location is in a system header.

Trait Implementations

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

impl<'tu> Clone for SourceLocation<'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 SourceLocation<'tu>
[src]

[src]

Formats the value using the given formatter.

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

impl<'tu> Hash for SourceLocation<'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