Skip to content

Add struct to encapsulate invariants of rounding increments#49

Merged
jedel1043 merged 2 commits intomainfrom
strict-rounding-increments
Jun 16, 2024
Merged

Add struct to encapsulate invariants of rounding increments#49
jedel1043 merged 2 commits intomainfrom
strict-rounding-increments

Conversation

@jedel1043
Copy link
Copy Markdown
Member

This saves a bit of memory on the parameter list (Option<NonZeroU32> is 4 bytes, while Option<f64> is 16 bytes).

@jedel1043 jedel1043 added C-enhancement New feature or request C-api Changes related to the public API labels Jun 2, 2024
Copy link
Copy Markdown
Member

@nekevss nekevss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, but definitely always down for a better repr 😄

Comment thread src/options.rs Outdated
@nekevss
Copy link
Copy Markdown
Member

nekevss commented Jun 8, 2024

Looks like this needs a rebase

@jedel1043 jedel1043 force-pushed the strict-rounding-increments branch from 5f9aa80 to fc8762b Compare June 16, 2024 22:56
@jedel1043 jedel1043 merged commit fc769df into main Jun 16, 2024
@jedel1043 jedel1043 deleted the strict-rounding-increments branch June 16, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-api Changes related to the public API C-enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants