boa-dev / temporal

A Rust implementation of ECMAScript's Temporal API
Apache License 2.0
26 stars 4 forks source link

Implement PartialEq and Eq for `Calendar`, `Date`, and `DateTime` #75

Closed nekevss closed 4 months ago

nekevss commented 4 months ago

Per title, this implements PartialEq and Eq for Calendar and some corresponding components. This should allow us to bypass the equals method.

There is a question for API ergonomics whether we provide an explicit equals method, but I'm not entirely sure that's needed with the trait implementations and feels counterproductive to a Rust API.