Struct clang::source::SourceRange [] [src]

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

A half-open range in a source file.

Methods

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

[src]

Constructs a new SourceRange that spans [start, end).

[src]

Returns the inclusive start of this source range.

[src]

Returns the exclusive end of this source range.

[src]

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

[src]

Returns whether this source range is in a system header.

[src]

Tokenizes the source code covered by this source range and returns the resulting tokens.

Trait Implementations

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

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

[src]

Formats the value using the given formatter.

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

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