Expand description
This is a simple library for parsing and storing JSON numbers according
to the JSON specification.
It provides two types, the unsized Number
type acting like str
,
and the NumberBuf<B>
type owning the data inside the B
type
(by default Vec<u8>
).
§Features
§Store small owned numbers on the stack
By enabling the smallnumberbuf
feature, the SmallNumberBuf<LEN>
type is
defined as NumberBuf<SmallVec<[u8; LEN]>>
(where LEN=8
by default)
thanks to the smallvec
crate.
§Serde support
Enable the serde
feature to add Serialize
, Deserialize
and
Deserializer
implementations to NumberBuf
.
Structs§
- Invalid
Number - Invalid number error.
- Number
- Lexical JSON number.
- Number
Buf - JSON number buffer.
Enums§
- Sign
- Number sign.
- TryFrom
Float Error - Float conversion error.
Traits§
- Buffer
- Buffer type.