Struct tblgen::error::SourceLocation
source · pub struct SourceLocation { /* private fields */ }
Expand description
A location in a TableGen source file.
Implementations§
source§impl SourceLocation
impl SourceLocation
pub unsafe fn from_raw(raw: TableGenSourceLocationRef) -> Self
sourcepub fn none() -> Self
pub fn none() -> Self
Returns a SourceLocation
for an undetermined location in the
TableGen source file.
Trait Implementations§
source§impl Clone for SourceLocation
impl Clone for SourceLocation
source§impl Debug for SourceLocation
impl Debug for SourceLocation
source§impl Drop for SourceLocation
impl Drop for SourceLocation
source§impl PartialEq for SourceLocation
impl PartialEq for SourceLocation
source§fn eq(&self, other: &SourceLocation) -> bool
fn eq(&self, other: &SourceLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SourceLoc for SourceLocation
impl SourceLoc for SourceLocation
source§fn source_location(self) -> SourceLocation
fn source_location(self) -> SourceLocation
Returns the source location.
impl Eq for SourceLocation
impl Send for SourceLocation
impl StructuralEq for SourceLocation
impl StructuralPartialEq for SourceLocation
impl Sync for SourceLocation
Auto Trait Implementations§
impl RefUnwindSafe for SourceLocation
impl Unpin for SourceLocation
impl UnwindSafe for SourceLocation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more