Struct clang::Location
[−]
[src]
pub struct Location<'tu> { pub file: File<'tu>, pub line: u32, pub column: u32, pub offset: u32, }
The file, line, column, and character offset of a source location.
Fields
file: File<'tu>
The file of the source location.
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> Hash for Location<'tu>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<'tu> Eq for Location<'tu>
[src]
impl<'tu> PartialEq for Location<'tu>
[src]
fn eq(&self, __arg_0: &Location<'tu>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Location<'tu>) -> bool
This method tests for !=
.
impl<'tu> Debug for Location<'tu>
[src]
impl<'tu> Clone for 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
Performs copy-assignment from source
. Read more