locspan
code mapping library.This library provides the StrippedPartialEq
derive macro
used to automatically implement the StrippedPartialEq
comparison
trait defined in the locspan
library.
```rust use locspan::Loc; use locspan_derive::StrippedPartialEq;
// Implement StrippedPartialEq
for the Foo
type.
// Type parameters will be required to implement
// StrippedPartialEq
themselves unless they are marked
// with #[stripped]
.
struct Foo
// Files are compared using StrippedPartialEq
// unless they are marked with #[stripped]
, in
// which case PartialEq
is used.
#[stripped]
b: std::path::PathBuf
}
```
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.