pub struct CodeLocation {
pub line: usize,
pub column: usize,
}Expand description
Location in generated code for error reporting.
Fields§
§line: usizeLine number (1-indexed)
column: usizeColumn number (1-indexed)
Trait Implementations§
Source§impl Clone for CodeLocation
impl Clone for CodeLocation
Source§fn clone(&self) -> CodeLocation
fn clone(&self) -> CodeLocation
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 moreSource§impl Debug for CodeLocation
impl Debug for CodeLocation
Source§impl Display for CodeLocation
impl Display for CodeLocation
Source§impl PartialEq for CodeLocation
impl PartialEq for CodeLocation
Source§fn eq(&self, other: &CodeLocation) -> bool
fn eq(&self, other: &CodeLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CodeLocation
impl StructuralPartialEq for CodeLocation
Auto Trait Implementations§
impl Freeze for CodeLocation
impl RefUnwindSafe for CodeLocation
impl Send for CodeLocation
impl Sync for CodeLocation
impl Unpin for CodeLocation
impl UnsafeUnpin for CodeLocation
impl UnwindSafe for CodeLocation
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