Struct cranelift_reader::Location
source · pub struct Location {
pub line_number: usize,
}
Expand description
The location of a Token
or Error
.
Fields
line_number: usize
Line number. Command-line arguments are line 0 and source file lines start from 1.
Trait Implementations
impl Copy for Location
impl Eq for Location
impl StructuralEq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more