Struct lexical_core::ParseFloatOptions [−][src]
pub struct ParseFloatOptions { /* fields omitted */ }
Expand description
Options to customize parsing floats.
Examples
use 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();
Implementations
Get the character to designate the exponent component of a float.
Get the character to separate the integer from the fraction components.
Get 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.
Safety
Always safe, just marked as unsafe for API compatibility.
Set the character to designate the exponent component of a float.
Safety
Always safe, but may produce invalid output if the exponent is not a valid ASCII character.
Set the character to separate the integer from the fraction components.
Safety
Always safe, but may produce invalid output if the decimal point is not a valid ASCII character.
Set the string representation for NaN
.
Unsafe, use the builder API for option validation.
Safety
Always safe, just marked as unsafe for API compatibility.
Set the short string representation for Infinity
Unsafe, use the builder API for option validation.
Safety
Always safe, just marked as unsafe for API compatibility.
Set the long string representation for Infinity
Unsafe, use the builder API for option validation.
Safety
Always safe, just marked as unsafe for API compatibility.
Get OptionsBuilder as a static function.
Create OptionsBuilder using existing values.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Options
impl UnwindSafe for Options
Blanket Implementations
Mutably borrows from an owned value. Read more