Expand description
Formatting-related items
Panic formatting for custom types can be done in these ways (in increasing order of verbosity):
- Using the PanicFmtderive macro (requires the opt-in"derive"feature)
- Using the impl_panicfmtmacro (requires the default-enabled"non_basic"feature)
- Using the flatten_panicvalsmacro (requires the default-enabled"non_basic"feature)
- Manually implementing the PanicFmttrait as described in its docs.
Modules§
- char_formatting 
- char-formatted related items
Structs§
- FmtArg
- Carries all of the configuration for formatting functions.
- IsCustomType 
- Marker type used as the PanicFmt::Kindfor user-defined types.
- IsPanicFmt 
- A marker type that proves that SimplementsPanicFmt<This = T, Kind = K>.
- IsStdType 
- Marker type used as the PanicFmt::Kindassociated type for std types.
Enums§
- FmtKind
- What kind of formatting to do, either DisplayorDebug.
- NumberFmt 
- What integers are formatted as.
Traits§
- CoerceReturn 
- Computes the type that the Targument is converted into byIsPanicFmt::coerce.
- PanicFmt 
- Trait for types that can be formatted by const panics.
Type Aliases§
- CoerceReturn Output 
- Computes the type that the Targument is converted into byIsPanicFmt::coerce.