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]

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

Returns the inclusive start of this source range.

Returns the exclusive end of this source range.

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

Returns whether this source range is in a system header.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

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

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.