Skip to main content

Module gmp_format

Module gmp_format 

Source
Expand description

The GmpConversionSpec struct, the GmpFormatArg trait, and the gmp_format function, for formatting values according to GMP-style printf format strings; the gmp_format! macro wraps them.

Structs§

GmpConversionSpec
A single parsed printf-style conversion specification, as GMP’s and MPFR’s formatted-output functions understand them: % [flags] [width] [.precision] [type] [rounding] conv.

Traits§

GmpFormatArg
A value that can be consumed by a conversion of a GMP-style format string; see gmp_format.

Functions§

gmp_format
Formats a sequence of values according to a GMP-style printf format string, each conversion consuming the next value, as gmp_printf and mpfr_printf do.
parse_gmp_conversion_spec
Parses a single conversion specification, starting just after the %, and returns it along with the unconsumed tail. star supplies the value of a * field width or precision, from the argument list; it may fail, and a caller with no argument list simply passes &mut || None.