pub struct SourceLocation {
pub line_start: u32,
pub line_end: u32,
pub column_start: u32,
pub column_end: u32,
}
Fields§
§line_start: u32
§line_end: u32
§column_start: u32
§column_end: u32
Implementations§
Source§impl SourceLocation
impl SourceLocation
pub fn new( line_start: u32, line_end: u32, column_start: u32, column_end: u32, ) -> SourceLocation
pub fn expand_until(&mut self, location: SourceLocation)
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Display for SourceLocation
impl Display for SourceLocation
impl Copy for SourceLocation
Auto Trait Implementations§
impl Freeze for SourceLocation
impl RefUnwindSafe for SourceLocation
impl Send for SourceLocation
impl Sync 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