pub struct SourceLocation { /* private fields */ }
Expand description
A location in a TableGen source file.
Implementations§
source§impl SourceLocation
impl SourceLocation
sourcepub unsafe fn from_raw(raw: TableGenSourceLocationRef) -> Self
pub unsafe fn from_raw(raw: TableGenSourceLocationRef) -> Self
§Safety
The passed pointer should be a valid table gen source location.
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§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 StructuralPartialEq for SourceLocation
impl Sync for SourceLocation
Auto Trait Implementations§
impl Freeze for SourceLocation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)