pub struct SourceLocation {
pub idx: usize,
pub line: usize,
pub column: usize,
/* private fields */
}Fields§
§idx: usize§line: usizestarts at 1
column: usizestarts at 1
Implementations§
Source§impl SourceLocation
impl SourceLocation
pub fn slice(&self, other: &Self) -> SourceSlice
Trait Implementations§
Source§impl Clone for SourceLocation
impl Clone for SourceLocation
Source§fn clone(&self) -> SourceLocation
fn clone(&self) -> SourceLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SourceLocation
impl !Send for SourceLocation
impl !Sync for SourceLocation
impl !UnwindSafe for SourceLocation
impl Freeze for SourceLocation
impl Unpin for SourceLocation
impl UnsafeUnpin 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