Expand description
Utilities for formatting and printing strings.
Re-exportsΒ§
use crate::cell::Cell;πuse crate::cell::Ref;πuse crate::cell::RefCell;πuse crate::cell::RefMut;πuse crate::cell::SyncUnsafeCell;πExperimental use crate::cell::UnsafeCell;πuse crate::char::EscapeDebugExtArgs;πuse crate::hint::assert_unchecked;πuse crate::marker::PhantomData;πuse crate::marker::PointeeSized;πExperimental use crate::num::imp::fmt as numfmt;πExperimental use crate::ops::Deref;πuse crate::ptr::NonNull;πuse crate::mem;πuse crate::result;πuse crate::str;πpub use num_buffer::NumBuffer;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 self::builders::FromFn;pub use self::builders::from_fn;pub use num_buffer::NumBufferTrait;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
Debugtrait should use lower-/upper-case hexadecimal or normal integers. - Sign
Experimental - The signedness of a
Formatter(or of aFormattingOptions).
TraitsΒ§
- Binary
bformatting.- Debug
?formatting.- Display
- Format trait for an empty format,
{}. - Lower
Exp eformatting.- Lower
Hex xformatting.- Octal
oformatting.- Pointer
pformatting.- Upper
Exp Eformatting.- Upper
Hex Xformatting.- Write
- A trait for writing or formatting into Unicode-accepting buffers or streams.
FunctionsΒ§
- pointer_
fmt_ πinner - Formats an address in
fmt::Pointerstyle. - split_
str_ πby_ space - Like
.split(' '), but doesnβt bloat binary size - wide_
pointer_ πfmt_ inner - Formats a wide pointer (address and type-erased metadata) in
fmt::Pointerstyle. - write
- Takes an output stream and an
Argumentsstruct 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.