Expand description
Formatting-related items
Panic formatting for custom types can be done in these ways (in increasing order of verbosity):
- Using the
PanicFmt
derive macro (requires the opt-in"derive"
feature) - Using the
impl_panicfmt
macro (requires the default-enabled"non_basic"
feature) - Using the
flatten_panicvals
macro (requires the default-enabled"non_basic"
feature) - Manually implementing the
PanicFmt
trait as described in its docs.
Modules§
- char_
formatting char
-formatted related items
Structs§
- FmtArg
- Carries all of the configuration for formatting functions.
- IsCustom
Type - Marker type used as the
PanicFmt::Kind
for user-defined types. - IsPanic
Fmt - A marker type that proves that
S
implementsPanicFmt<This = T, Kind = K>
. - IsStd
Type - Marker type used as the
PanicFmt::Kind
associated type for std types.
Enums§
- FmtKind
- What kind of formatting to do, either
Display
orDebug
. - Number
Fmt - What integers are formatted as.
Traits§
- Panic
Fmt - Trait for types that can be formatted by const panics.