Derive macros for the locspan code mapping library.

CI Crate informations License Documentation

This library provides the StrippedPartialEq derive macro used to automatically implement the StrippedPartialEq comparison trait defined in the locspan library.

Usage

```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].

[derive(StrippedPartialEq)]

struct Foo { a: Loc,

// Files are compared using StrippedPartialEq // unless they are marked with #[stripped], in // which case PartialEq is used. #[stripped] b: std::path::PathBuf } ```

License

Licensed under either of

at your option.

Contribution

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.