lexical-core 1.0.6
README badge
[](https://proofs.rs/crate/lexical-core?version=1.0.6)Lexical, to- and from-string conversion routines.
Documentation import is incomplete. 25 public exports could not be resolved in the upstream rustdoc JSON: lexical_core::Error, lexical_core::Result, lexical_core::format, lexical_core::format_error, lexical_core::format_is_valid, lexical_core::NumberFormat, lexical_core::NumberFormatBuilder, lexical_core::bf16, lexical_core::f16, lexical_core::ParseOptions, lexical_core::parse_float_options, lexical_core::ParseFloatOptions, lexical_core::ParseFloatOptionsBuilder, lexical_core::parse_integer_options, lexical_core::ParseIntegerOptions, lexical_core::ParseIntegerOptionsBuilder, lexical_core::WriteOptions, lexical_core::FormattedSize, lexical_core::BUFFER_SIZE, lexical_core::write_float_options, lexical_core::WriteFloatOptions, lexical_core::WriteFloatOptionsBuilder, lexical_core::write_integer_options, lexical_core::WriteIntegerOptions, lexical_core::WriteIntegerOptionsBuilder. APIs missing from that JSON cannot be mapped from documentation. Counts cover catalogued APIs only.
Reports (1)
Findings (2)
| Finding | Status | Report | Links |
|---|---|---|---|
| Partial parsing omits a single zero from the consumed length | Reported | #36 · v1 | — |
| Suffix format advances past an unrelated invalid byte | Reported | #36 · v1 | — |
APIs (96)
Functions
pub fn parse_partial<N: FromLexical>(bytes: &[u8]) -> Result<(N, usize)>1 claimpub fn parse_partial_with_options<N: FromLexicalWithOptions, const FORMAT: u128>(bytes: &[u8], options: &<N as lexical_core::FromLexicalWithOptions>::Options) -> Result<(N, usize)>1 claim · 2 findingspub fn parse_with_options<N: FromLexicalWithOptions, const FORMAT: u128>(bytes: &[u8], options: &<N as lexical_core::FromLexicalWithOptions>::Options) -> Result<N>1 claim · 1 findingpub fn write_with_options<'a, N: ToLexicalWithOptions, const FORMAT: u128>(n: N, bytes: &'a mut [u8], options: &<N as lexical_core::ToLexicalWithOptions>::Options) -> &'a mut [u8]1 claimAssociated functions
No associated functions.
Methods
No inherent methods.
Traits
trait FromLexical
pub fn from_lexical(bytes: &[u8]) -> lexical_util::result::Result<Self>—pub fn from_lexical_partial(bytes: &[u8]) -> lexical_util::result::Result<(Self, usize)>—trait FromLexicalWithOptions
pub fn from_lexical_partial_with_options<const FORMAT: u128>(bytes: &[u8], options: &<Self as lexical_core::FromLexicalWithOptions>::Options) -> lexical_util::result::Result<(Self, usize)>—pub fn from_lexical_with_options<const FORMAT: u128>(bytes: &[u8], options: &<Self as lexical_core::FromLexicalWithOptions>::Options) -> lexical_util::result::Result<Self>—trait ToLexical
pub fn to_lexical<'a>(self: Self, bytes: &'a mut [u8]) -> &'a mut [u8]—trait ToLexicalWithOptions
pub fn to_lexical_with_options<'a, const FORMAT: u128>(self: Self, bytes: &'a mut [u8], options: &<Self as lexical_core::ToLexicalWithOptions>::Options) -> &'a mut [u8]—