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
file: Option<File<'tu>>
The file of the source location, if it has any.
line: u32
The line of the source location.
column: u32
The column of the source location.
offset: u32
The character offset of the source location.
Trait Implementations
impl<'tu> Copy for Location<'tu>
[src]
impl<'tu> Copy for Location<'tu>
impl<'tu> Clone for Location<'tu>
[src]
impl<'tu> Clone for Location<'tu>
fn clone(&self) -> Location<'tu>
[src]
fn clone(&self) -> Location<'tu>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'tu> Debug for Location<'tu>
[src]
impl<'tu> Debug for Location<'tu>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'tu> PartialEq for Location<'tu>
[src]
impl<'tu> PartialEq for Location<'tu>
fn eq(&self, other: &Location<'tu>) -> bool
[src]
fn eq(&self, other: &Location<'tu>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Location<'tu>) -> bool
[src]
fn ne(&self, other: &Location<'tu>) -> bool
This method tests for !=
.
impl<'tu> Eq for Location<'tu>
[src]
impl<'tu> Eq for Location<'tu>
impl<'tu> Hash for Location<'tu>
[src]
impl<'tu> Hash for Location<'tu>