Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements #283 as both a raw
Option<f32> -> ArchivedOptionF32
low-level wrapper and as awith::Niche
/ArchiveWith
implementation usingnoisy_float::NoisyFloat
for safety.noisy_float
is an optional dependency, and a simpleFloatChecker
trait has been included withoption_float
for non-noisy_float
usage, but this is automatically implemented for allnoisy_float::FloatChecker
types if enabled.Some of the generated docs are bit off with the lowercase type names, so I may fix those later.Fixed.Future work may be to include all
F: Float
types instead of onlyf32
andf64
, but that would require work with rend or others to implementFloat
or whatnot.Starting this as a draft so I can review it again in the morning and fix anything I missed.
Closes #283