I would like to use these types in an existing error enum that already #[derive(PartialEq)]s, but I cannot, because neither type does the same. For example:
#[derive(PartialEq)]
enum MyError {
...,
IonScheamError(ion_schema::result::IonSchemaError),
// ^ Rust complains because IonSchemaError doesn't implement `PartialEq`.
ValidationError(ion_schema::violation::Violation)
// ^ same (if the `ion_schema::Violation` module were `pub`)
}
See also #135 about making ion_schema::Violationpub.
I would like to use these types in an existing error
enum
that already#[derive(PartialEq)]
s, but I cannot, because neither type does the same. For example:See also #135 about making
ion_schema::Violation
pub
.