A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.rs/lexical-write-float/latest/lexical_write_float/struct.Options.html below:

Options in lexical_write_float - Rust

pub struct Options {  }
Expand description

Options to customize writing floats.

§Examples
use lexical_write_float::Options;

let options = Options::builder()
    .trim_floats(true)
    .nan_string(Some(b"NaN"))
    .inf_string(Some(b"Inf"))
    .build()
    .unwrap();
Source§ Source

Create options with default values.

Source

Create the default options for a given radix.

Source

Check if the options state is valid.

Source

Get the maximum number of significant digits to write.

Source

Get the minimum number of significant digits to write.

Source

Get the maximum exponent prior to using scientific notation.

Source

Get the minimum exponent prior to using scientific notation.

Source

Get the rounding mode for writing digits with precision control.

Source

Get if we should trim a trailing ".0" from floats.

Source

Get the character to designate the exponent component of a float.

Source

Get the character to separate the integer from the fraction components.

Source

Get the string representation for NaN.

Source

Get the short string representation for Infinity.

Source

Set the maximum number of significant digits to write.

Source

Set the minimum number of significant digits to write.

Source

Set the maximum exponent prior to using scientific notation.

Source

Set the minimum exponent prior to using scientific notation.

Source

Set the rounding mode for writing digits with precision control.

Source

Set if we should trim a trailing ".0" from floats.

Source

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.

Source

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.

Source

Set the string representation for NaN.

Panics

Setting a value too large may cause a panic even if FORMATTED_SIZE elements are provided.

Source

Set the short string representation for Infinity

Panics

Setting a value too large may cause a panic even if FORMATTED_SIZE elements are provided.

Source

Get WriteFloatOptionsBuilder as a static function.

Source

Create OptionsBuilder using existing values.


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