billyrieger / bimap-rs

Generic bijective maps in Rust
Apache License 2.0
129 stars 26 forks source link

A more consistent API naming scheme #40

Open GrigorenkoPV opened 1 year ago

GrigorenkoPV commented 1 year ago

Implements #34.

I did not change the name of the structs like LeftValues, because ValuesLeft sound more like ValuesRemaining than ValuesOnTheLeft. (Well, maybe I should've actually renamed it to ValuesOnTheLeft, but that's kinda verbose.) I don't really think that matters, because users probably do not spell those structs' names anyways, 'cause they are just inferred by Rust. Unlike methods. You have to spell those. (Can't wait for the day Rust will infer that for me too, though.)

This is a breaking change, so i bumped the version to 0.7.0. cargo-semver-checks seems to be happy with this.