pub struct TypeLocation {
pub file: String,
pub line: usize,
pub column: usize,
pub context: String,
}Expand description
Type inference types: Perl types, constraints, and inference engine. Location information for type errors
Fields§
§file: StringFile path where the type issue occurred
line: usizeLine number (1-indexed)
column: usizeColumn number (1-indexed)
context: StringSurrounding code context for error messages
Trait Implementations§
Source§impl Clone for TypeLocation
impl Clone for TypeLocation
Source§fn clone(&self) -> TypeLocation
fn clone(&self) -> TypeLocation
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 moreAuto Trait Implementations§
impl Freeze for TypeLocation
impl RefUnwindSafe for TypeLocation
impl Send for TypeLocation
impl Sync for TypeLocation
impl Unpin for TypeLocation
impl UnsafeUnpin for TypeLocation
impl UnwindSafe for TypeLocation
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