Expand description
Utilities for formatting and printing strings.
Re-exports§
pub use self::builders::DebugList;
pub use self::builders::DebugMap;
pub use self::builders::DebugSet;
pub use self::builders::DebugStruct;
pub use self::builders::DebugTuple;
pub use num_buffer::NumBuffer;
Experimental pub use num_buffer::NumBufferTrait;
Experimental pub use self::builders::FromFn;
Experimental pub use self::builders::from_fn;
Experimental
Modules§
- builders 🔒
- flags 🔒
- float 🔒
- macros 🔒
- num 🔒
- Integer and floating-point number formatting
- num_
buffer 🔒 - rt 🔒
Experimental - All types and methods in this file are used by the compiler in the expansion/lowering of format_args!().
Macros§
- fmt_
refs 🔒 - maybe_
tuple_ 🔒doc - peel 🔒
- tuple 🔒
Structs§
- Arguments
- This structure represents a safely precompiled version of a format string and its arguments. This cannot be generated at runtime because it cannot safely be done, so no constructors are given and the fields are private to prevent modification.
- Error
- The error type which is returned from formatting a message into a stream.
- Formatter
- Configuration for formatting.
- Post
Padding 🔒 - Padding after the end of something. Returned by
Formatter::padding
. - Formatting
Options Experimental - Options for formatting.
Enums§
- Alignment
- Possible alignments returned by
Formatter::align
- Debug
AsHex Experimental - Specifies whether the
Debug
trait should use lower-/upper-case hexadecimal or normal integers. - Sign
Experimental - The signedness of a
Formatter
(or of aFormattingOptions
).
Traits§
- Binary
b
formatting.- Debug
?
formatting.- Display
- Format trait for an empty format,
{}
. - Lower
Exp e
formatting.- Lower
Hex x
formatting.- Octal
o
formatting.- Pointer
p
formatting.- Upper
Exp E
formatting.- Upper
Hex X
formatting.- Write
- A trait for writing or formatting into Unicode-accepting buffers or streams.
Functions§
- getcount 🔒 ⚠
- pointer_
fmt_ 🔒inner - Since the formatting will be identical for all pointer types, uses a non-monomorphized implementation for the actual formatting to reduce the amount of codegen work needed.
- run 🔒 ⚠
- write
- Takes an output stream and an
Arguments
struct that can be precompiled with theformat_args!
macro.
Type Aliases§
- Result
- The type returned by formatter methods.
Derive Macros§
- Debug
- Derive macro generating an impl of the trait
Debug
.