EmilyMatt / mapping-rs

A collection of mapping suites and useful algorithms, implemented in pure Rust
MIT License
11 stars 3 forks source link

Move ICPConfiguration struct to use the Builder pattern #59

Closed EmilyMatt closed 3 months ago

EmilyMatt commented 4 months ago

This will prevent issues with backwards compatibility, as there will always be default values for new features, and developers will have to actively choose to use them instead of getting compilation errors when upgrading the crate.

All the struct member's visibilities should be replaced with 'pub (crate)'

You can read more about the Builder pattern here: https://rust-unofficial.github.io/patterns/patterns/creational/builder.html