commit | 9d4fb447db84c51c242ed3d717844ea1c7c8fc6c | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Mon Apr 22 16:42:41 2019 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Mon Apr 22 16:42:41 2019 -0700 |
tree | cf9d3011b6433b1024dc05c8ab226a6a85d5510c | |
parent | 20458b6b7a955a31c0cdd5a9ccc6db28745e0457 [diff] |
Derive traits for LineColumn
diff --git a/src/lib.rs b/src/lib.rs index 6b0d484..bcefc7a 100644 --- a/src/lib.rs +++ b/src/lib.rs
@@ -301,6 +301,7 @@ /// /// This type is semver exempt and not exposed by default. #[cfg(span_locations)] +#[derive(Copy, Clone, Debug, PartialEq, Eq)] pub struct LineColumn { /// The 1-indexed line in the source file on which the span starts or ends /// (inclusive).