pub struct Options { }
Expand description
Options to customize parsing floats.
§Examplesuse lexical_parse_float::Options;
let options = Options::builder()
.lossy(true)
.nan_string(Some(b"NaN"))
.inf_string(Some(b"Inf"))
.infinity_string(Some(b"Infinity"))
.build()
.unwrap();
Source§ Source
Create options with default values.
SourceCreate the default options for a given radix.
SourceCheck if the options state is valid.
SourceGet if we disable the use of arbitrary-precision arithmetic.
SourceGet the character to designate the exponent component of a float.
SourceGet the character to separate the integer from the fraction components.
SourceGet the string representation for NaN
.
Get the short string representation for Infinity
.
Get the long string representation for Infinity
.
Set if we disable the use of arbitrary-precision arithmetic.
SourceSet the character to designate the exponent component of a float.
SourceSet the character to separate the integer from the fraction components.
SourceSet the string representation for NaN
.
Set the short string representation for Infinity
Set the long string representation for Infinity
Get OptionsBuilder
as a static function.
Create OptionsBuilder
using existing values.
Determine if the options are valid.
Source§ Source§Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more 1.0.0 · Source§Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more 1.0.0 · Source§Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more 1.0.0 · Source§Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more 1.0.0 · Source§Tests greater than or equal to (for
self
and
other
) and is used by the
>=
operator.
Read more Source§ Source§RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4