Trait Debug

1.6.0 ยท Source
pub trait Debug: PointeeSized {
    // Required method
    fn fmt(&self, f: &mut Formatter<'_>) -> Result;
}
Expand description

? formatting.

Debug should format the output in a programmer-facing, debugging context.

Generally speaking, you should just derive a Debug implementation.

When used with the alternate format specifier #?, the output is pretty-printed.

For more information on formatters, see the module-level documentation.

This trait can be used with #[derive] if all fields implement Debug. When derived for structs, it will use the name of the struct, then {, then a comma-separated list of each fieldโ€™s name and Debug value, then }. For enums, it will use the name of the variant and, if applicable, (, then the Debug values of the fields, then ).

ยงStability

Derived Debug formats are not stable, and so may change with future Rust versions. Additionally, Debug implementations of types provided by the standard library (std, core, alloc, etc.) are not stable, and may also change with future Rust versions.

ยงExamples

Deriving an implementation:

#[derive(Debug)]
struct Point {
    x: i32,
    y: i32,
}

let origin = Point { x: 0, y: 0 };

assert_eq!(
    format!("The origin is: {origin:?}"),
    "The origin is: Point { x: 0, y: 0 }",
);

Manually implementing:

use std::fmt;

struct Point {
    x: i32,
    y: i32,
}

impl fmt::Debug for Point {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        f.debug_struct("Point")
         .field("x", &self.x)
         .field("y", &self.y)
         .finish()
    }
}

let origin = Point { x: 0, y: 0 };

assert_eq!(
    format!("The origin is: {origin:?}"),
    "The origin is: Point { x: 0, y: 0 }",
);

There are a number of helper methods on the Formatter struct to help you with manual implementations, such as debug_struct.

Types that do not wish to use the standard suite of debug representations provided by the Formatter trait (debug_struct, debug_tuple, debug_list, debug_set, debug_map) can do something totally custom by manually writing an arbitrary representation to the Formatter.

impl fmt::Debug for Point {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "Point [{} {}]", self.x, self.y)
    }
}

Debug implementations using either derive or the debug builder API on Formatter support pretty-printing using the alternate flag: {:#?}.

Pretty-printing with #?:

#[derive(Debug)]
struct Point {
    x: i32,
    y: i32,
}

let origin = Point { x: 0, y: 0 };

let expected = "The origin is: Point {
    x: 0,
    y: 0,
}";
assert_eq!(format!("The origin is: {origin:#?}"), expected);

Required Methodsยง

1.0.0 ยท Source

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.

ยงErrors

This function should return Err if, and only if, the provided Formatter returns Err. String formatting is considered an infallible operation; this function only returns a Result because writing to the underlying stream might fail and it must provide a way to propagate the fact that an error has occurred back up the stack.

ยงExamples
use std::fmt;

struct Position {
    longitude: f32,
    latitude: f32,
}

impl fmt::Debug for Position {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        f.debug_tuple("")
         .field(&self.longitude)
         .field(&self.latitude)
         .finish()
    }
}

let position = Position { longitude: 1.987, latitude: 2.983 };
assert_eq!(format!("{position:?}"), "(1.987, 2.983)");

assert_eq!(format!("{position:#?}"), "(
    1.987,
    2.983,
)");

Implementorsยง

Sourceยง

impl Debug for AsciiChar

1.0.0 ยท Sourceยง

impl Debug for core::cmp::Ordering

1.34.0 ยท Sourceยง

impl Debug for Infallible

1.64.0 ยท Sourceยง

impl Debug for FromBytesWithNulError

1.16.0 ยท Sourceยง

impl Debug for c_void

Sourceยง

impl Debug for AtomicOrdering

1.7.0 ยท Sourceยง

impl Debug for IpAddr

Sourceยง

impl Debug for Ipv6MulticastScope

1.0.0 ยท Sourceยง

impl Debug for SocketAddr

1.0.0 ยท Sourceยง

impl Debug for FpCategory

1.55.0 ยท Sourceยง

impl Debug for IntErrorKind

1.86.0 ยท Sourceยง

impl Debug for GetDisjointMutError

Sourceยง

impl Debug for SearchStep

1.0.0 ยท Sourceยง

impl Debug for core::sync::atomic::Ordering

1.28.0 ยท Sourceยง

impl Debug for core::fmt::Alignment

Sourceยง

impl Debug for DebugAsHex

Sourceยง

impl Debug for Sign

1.0.0 ยท Sourceยง

impl Debug for bool

1.0.0 ยท Sourceยง

impl Debug for char

1.0.0 ยท Sourceยง

impl Debug for f16

1.0.0 ยท Sourceยง

impl Debug for f32

1.0.0 ยท Sourceยง

impl Debug for f64

1.0.0 ยท Sourceยง

impl Debug for f128

1.0.0 ยท Sourceยง

impl Debug for i8

1.0.0 ยท Sourceยง

impl Debug for i16

1.0.0 ยท Sourceยง

impl Debug for i32

1.0.0 ยท Sourceยง

impl Debug for i64

1.0.0 ยท Sourceยง

impl Debug for i128

1.0.0 ยท Sourceยง

impl Debug for isize

Sourceยง

impl Debug for !

1.0.0 ยท Sourceยง

impl Debug for str

1.0.0 ยท Sourceยง

impl Debug for u8

1.0.0 ยท Sourceยง

impl Debug for u16

1.0.0 ยท Sourceยง

impl Debug for u32

1.0.0 ยท Sourceยง

impl Debug for u64

1.0.0 ยท Sourceยง

impl Debug for u128

1.0.0 ยท Sourceยง

impl Debug for ()

1.0.0 ยท Sourceยง

impl Debug for usize

Sourceยง

impl Debug for AllocError

1.28.0 ยท Sourceยง

impl Debug for Layout

1.50.0 ยท Sourceยง

impl Debug for LayoutError

1.0.0 ยท Sourceยง

impl Debug for TypeId

1.59.0 ยท Sourceยง

impl Debug for float64x1_t

Available on AArch64 or target_arch="arm64ec" only.
1.59.0 ยท Sourceยง

impl Debug for float64x1x2_t

Available on AArch64 or target_arch="arm64ec" only.
1.59.0 ยท Sourceยง

impl Debug for float64x1x3_t

Available on AArch64 or target_arch="arm64ec" only.
1.59.0 ยท Sourceยง

impl Debug for float64x1x4_t

Available on AArch64 or target_arch="arm64ec" only.
1.59.0 ยท Sourceยง

impl Debug for float64x2_t

Available on AArch64 or target_arch="arm64ec" only.
1.59.0 ยท Sourceยง

impl Debug for float64x2x2_t

Available on AArch64 or target_arch="arm64ec" only.
1.59.0 ยท Sourceยง

impl Debug for float64x2x3_t

Available on AArch64 or target_arch="arm64ec" only.
1.59.0 ยท Sourceยง

impl Debug for float64x2x4_t

Available on AArch64 or target_arch="arm64ec" only.
Sourceยง

impl Debug for float16x4_t

Sourceยง

impl Debug for float16x4x2_t

Sourceยง

impl Debug for float16x4x3_t

Sourceยง

impl Debug for float16x4x4_t

Sourceยง

impl Debug for float16x8_t

Sourceยง

impl Debug for float16x8x2_t

Sourceยง

impl Debug for float16x8x3_t

Sourceยง

impl Debug for float16x8x4_t

1.59.0 ยท Sourceยง

impl Debug for float32x2_t

1.59.0 ยท Sourceยง

impl Debug for float32x2x2_t

1.59.0 ยท Sourceยง

impl Debug for float32x2x3_t

1.59.0 ยท Sourceยง

impl Debug for float32x2x4_t

1.59.0 ยท Sourceยง

impl Debug for float32x4_t

1.59.0 ยท Sourceยง

impl Debug for float32x4x2_t

1.59.0 ยท Sourceยง

impl Debug for float32x4x3_t

1.59.0 ยท Sourceยง

impl Debug for float32x4x4_t

1.59.0 ยท Sourceยง

impl Debug for int8x8_t

1.59.0 ยท Sourceยง

impl Debug for int8x8x2_t

1.59.0 ยท Sourceยง

impl Debug for int8x8x3_t

1.59.0 ยท Sourceยง

impl Debug for int8x8x4_t

1.59.0 ยท Sourceยง

impl Debug for int8x16_t

1.59.0 ยท Sourceยง

impl Debug for int8x16x2_t

1.59.0 ยท Sourceยง

impl Debug for int8x16x3_t

1.59.0 ยท Sourceยง

impl Debug for int8x16x4_t

1.59.0 ยท Sourceยง

impl Debug for int16x4_t

1.59.0 ยท Sourceยง

impl Debug for int16x4x2_t

1.59.0 ยท Sourceยง

impl Debug for int16x4x3_t

1.59.0 ยท Sourceยง

impl Debug for int16x4x4_t

1.59.0 ยท Sourceยง

impl Debug for int16x8_t

1.59.0 ยท Sourceยง

impl Debug for int16x8x2_t

1.59.0 ยท Sourceยง

impl Debug for int16x8x3_t

1.59.0 ยท Sourceยง

impl Debug for int16x8x4_t

1.59.0 ยท Sourceยง

impl Debug for int32x2_t

1.59.0 ยท Sourceยง

impl Debug for int32x2x2_t

1.59.0 ยท Sourceยง

impl Debug for int32x2x3_t

1.59.0 ยท Sourceยง

impl Debug for int32x2x4_t

1.59.0 ยท Sourceยง

impl Debug for int32x4_t

1.59.0 ยท Sourceยง

impl Debug for int32x4x2_t

1.59.0 ยท Sourceยง

impl Debug for int32x4x3_t

1.59.0 ยท Sourceยง

impl Debug for int32x4x4_t

1.59.0 ยท Sourceยง

impl Debug for int64x1_t

1.59.0 ยท Sourceยง

impl Debug for int64x1x2_t

1.59.0 ยท Sourceยง

impl Debug for int64x1x3_t

1.59.0 ยท Sourceยง

impl Debug for int64x1x4_t

1.59.0 ยท Sourceยง

impl Debug for int64x2_t

1.59.0 ยท Sourceยง

impl Debug for int64x2x2_t

1.59.0 ยท Sourceยง

impl Debug for int64x2x3_t

1.59.0 ยท Sourceยง

impl Debug for int64x2x4_t

1.59.0 ยท Sourceยง

impl Debug for poly8x8_t

1.59.0 ยท Sourceยง

impl Debug for poly8x8x2_t

1.59.0 ยท Sourceยง

impl Debug for poly8x8x3_t

1.59.0 ยท Sourceยง

impl Debug for poly8x8x4_t

1.59.0 ยท Sourceยง

impl Debug for poly8x16_t

1.59.0 ยท Sourceยง

impl Debug for poly8x16x2_t

1.59.0 ยท Sourceยง

impl Debug for poly8x16x3_t

1.59.0 ยท Sourceยง

impl Debug for poly8x16x4_t

1.59.0 ยท Sourceยง

impl Debug for poly16x4_t

1.59.0 ยท Sourceยง

impl Debug for poly16x4x2_t

1.59.0 ยท Sourceยง

impl Debug for poly16x4x3_t

1.59.0 ยท Sourceยง

impl Debug for poly16x4x4_t

1.59.0 ยท Sourceยง

impl Debug for poly16x8_t

1.59.0 ยท Sourceยง

impl Debug for poly16x8x2_t

1.59.0 ยท Sourceยง

impl Debug for poly16x8x3_t

1.59.0 ยท Sourceยง

impl Debug for poly16x8x4_t

1.59.0 ยท Sourceยง

impl Debug for poly64x1_t

1.59.0 ยท Sourceยง

impl Debug for poly64x1x2_t

1.59.0 ยท Sourceยง

impl Debug for poly64x1x3_t

1.59.0 ยท Sourceยง

impl Debug for poly64x1x4_t

1.59.0 ยท Sourceยง

impl Debug for poly64x2_t

1.59.0 ยท Sourceยง

impl Debug for poly64x2x2_t

1.59.0 ยท Sourceยง

impl Debug for poly64x2x3_t

1.59.0 ยท Sourceยง

impl Debug for poly64x2x4_t

1.59.0 ยท Sourceยง

impl Debug for uint8x8_t

1.59.0 ยท Sourceยง

impl Debug for uint8x8x2_t

1.59.0 ยท Sourceยง

impl Debug for uint8x8x3_t

1.59.0 ยท Sourceยง

impl Debug for uint8x8x4_t

1.59.0 ยท Sourceยง

impl Debug for uint8x16_t

1.59.0 ยท Sourceยง

impl Debug for uint8x16x2_t

1.59.0 ยท Sourceยง

impl Debug for uint8x16x3_t

1.59.0 ยท Sourceยง

impl Debug for uint8x16x4_t

1.59.0 ยท Sourceยง

impl Debug for uint16x4_t

1.59.0 ยท Sourceยง

impl Debug for uint16x4x2_t

1.59.0 ยท Sourceยง

impl Debug for uint16x4x3_t

1.59.0 ยท Sourceยง

impl Debug for uint16x4x4_t

1.59.0 ยท Sourceยง

impl Debug for uint16x8_t

1.59.0 ยท Sourceยง

impl Debug for uint16x8x2_t

1.59.0 ยท Sourceยง

impl Debug for uint16x8x3_t

1.59.0 ยท Sourceยง

impl Debug for uint16x8x4_t

1.59.0 ยท Sourceยง

impl Debug for uint32x2_t

1.59.0 ยท Sourceยง

impl Debug for uint32x2x2_t

1.59.0 ยท Sourceยง

impl Debug for uint32x2x3_t

1.59.0 ยท Sourceยง

impl Debug for uint32x2x4_t

1.59.0 ยท Sourceยง

impl Debug for uint32x4_t

1.59.0 ยท Sourceยง

impl Debug for uint32x4x2_t

1.59.0 ยท Sourceยง

impl Debug for uint32x4x3_t

1.59.0 ยท Sourceยง

impl Debug for uint32x4x4_t

1.59.0 ยท Sourceยง

impl Debug for uint64x1_t

1.59.0 ยท Sourceยง

impl Debug for uint64x1x2_t

1.59.0 ยท Sourceยง

impl Debug for uint64x1x3_t

1.59.0 ยท Sourceยง

impl Debug for uint64x1x4_t

1.59.0 ยท Sourceยง

impl Debug for uint64x2_t

1.59.0 ยท Sourceยง

impl Debug for uint64x2x2_t

1.59.0 ยท Sourceยง

impl Debug for uint64x2x3_t

1.59.0 ยท Sourceยง

impl Debug for uint64x2x4_t

Sourceยง

impl Debug for v2f64

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v2i64

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v2u64

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v4f32

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v4f64

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v4i32

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v4i64

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v4u32

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v4u64

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v8f32

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v8i16

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v8i32

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v8u16

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v8u32

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v16i8

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v16i16

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v16u8

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v16u16

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v32i8

Available on LoongArch LA64 only.
Sourceยง

impl Debug for v32u8

Available on LoongArch LA64 only.
Sourceยง

impl Debug for f16x2

Available on target_arch="nvptx64" only.
Sourceยง

impl Debug for core::arch::powerpc::vector_bool_char

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::powerpc::vector_bool_int

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for vector_bool_long

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::powerpc::vector_bool_short

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::powerpc::vector_double

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::powerpc::vector_float

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::powerpc::vector_signed_char

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::powerpc::vector_signed_int

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for vector_signed_long

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::powerpc::vector_signed_short

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::powerpc::vector_unsigned_char

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::powerpc::vector_unsigned_int

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for vector_unsigned_long

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::powerpc::vector_unsigned_short

Available on PowerPC or PowerPC-64 only.
Sourceยง

impl Debug for core::arch::s390x::vector_bool_char

Available on s390x only.
Sourceยง

impl Debug for core::arch::s390x::vector_bool_int

Available on s390x only.
Sourceยง

impl Debug for vector_bool_long_long

Available on s390x only.
Sourceยง

impl Debug for core::arch::s390x::vector_bool_short

Available on s390x only.
Sourceยง

impl Debug for core::arch::s390x::vector_double

Available on s390x only.
Sourceยง

impl Debug for core::arch::s390x::vector_float

Available on s390x only.
Sourceยง

impl Debug for core::arch::s390x::vector_signed_char

Available on s390x only.
Sourceยง

impl Debug for core::arch::s390x::vector_signed_int

Available on s390x only.
Sourceยง

impl Debug for vector_signed_long_long

Available on s390x only.
Sourceยง

impl Debug for core::arch::s390x::vector_signed_short

Available on s390x only.
Sourceยง

impl Debug for core::arch::s390x::vector_unsigned_char

Available on s390x only.
Sourceยง

impl Debug for core::arch::s390x::vector_unsigned_int

Available on s390x only.
Sourceยง

impl Debug for vector_unsigned_long_long

Available on s390x only.
Sourceยง

impl Debug for core::arch::s390x::vector_unsigned_short

Available on s390x only.
1.54.0 ยท Sourceยง

impl Debug for v128

Available on target_family="wasm" only.
1.27.0 ยท Sourceยง

impl Debug for CpuidResult

Available on x86 or x86-64 only.
1.27.0 ยท Sourceยง

impl Debug for __m128

Available on x86 or x86-64 only.
1.89.0 ยท Sourceยง

impl Debug for __m128bh

Available on x86 or x86-64 only.
1.27.0 ยท Sourceยง

impl Debug for __m128d

Available on x86 or x86-64 only.
Sourceยง

impl Debug for __m128h

Available on x86 or x86-64 only.
1.27.0 ยท Sourceยง

impl Debug for __m128i

Available on x86 or x86-64 only.
1.27.0 ยท Sourceยง

impl Debug for __m256

Available on x86 or x86-64 only.
1.89.0 ยท Sourceยง

impl Debug for __m256bh

Available on x86 or x86-64 only.
1.27.0 ยท Sourceยง

impl Debug for __m256d

Available on x86 or x86-64 only.
Sourceยง

impl Debug for __m256h

Available on x86 or x86-64 only.
1.27.0 ยท Sourceยง

impl Debug for __m256i

Available on x86 or x86-64 only.
1.72.0 ยท Sourceยง

impl Debug for __m512

Available on x86 or x86-64 only.
1.89.0 ยท Sourceยง

impl Debug for __m512bh

Available on x86 or x86-64 only.
1.72.0 ยท Sourceยง

impl Debug for __m512d

Available on x86 or x86-64 only.
Sourceยง

impl Debug for __m512h

Available on x86 or x86-64 only.
1.72.0 ยท Sourceยง

impl Debug for __m512i

Available on x86 or x86-64 only.
Sourceยง

impl Debug for bf16

Available on x86 or x86-64 only.
1.34.0 ยท Sourceยง

impl Debug for TryFromSliceError

1.16.0 ยท Sourceยง

impl Debug for core::ascii::EscapeDefault

Sourceยง

impl Debug for ByteStr

1.13.0 ยท Sourceยง

impl Debug for BorrowError

1.13.0 ยท Sourceยง

impl Debug for BorrowMutError

1.34.0 ยท Sourceยง

impl Debug for CharTryFromError

1.9.0 ยท Sourceยง

impl Debug for DecodeUtf16Error

1.20.0 ยท Sourceยง

impl Debug for core::char::EscapeDebug

1.0.0 ยท Sourceยง

impl Debug for core::char::EscapeDefault

1.0.0 ยท Sourceยง

impl Debug for core::char::EscapeUnicode

1.20.0 ยท Sourceยง

impl Debug for ParseCharError

1.0.0 ยท Sourceยง

impl Debug for ToLowercase

1.0.0 ยท Sourceยง

impl Debug for ToUppercase

1.59.0 ยท Sourceยง

impl Debug for TryFromCharError

1.3.0 ยท Sourceยง

impl Debug for CStr

Shows the underlying bytes as a normal string, with invalid UTF-8 presented as hex escape sequences.

1.69.0 ยท Sourceยง

impl Debug for FromBytesUntilNulError

1.0.0 ยท Sourceยง

impl Debug for SipHasher

Sourceยง

impl Debug for BorrowedBuf<'_>

Sourceยง

impl Debug for PhantomContravariantLifetime<'_>

Sourceยง

impl Debug for PhantomCovariantLifetime<'_>

Sourceยง

impl Debug for PhantomInvariantLifetime<'_>

1.33.0 ยท Sourceยง

impl Debug for PhantomPinned

Sourceยง

impl Debug for Assume

1.0.0 ยท Sourceยง

impl Debug for AddrParseError

1.0.0 ยท Sourceยง

impl Debug for Ipv4Addr

1.0.0 ยท Sourceยง

impl Debug for Ipv6Addr

1.0.0 ยท Sourceยง

impl Debug for SocketAddrV4

1.0.0 ยท Sourceยง

impl Debug for SocketAddrV6

1.0.0 ยท Sourceยง

impl Debug for ParseFloatError

1.0.0 ยท Sourceยง

impl Debug for ParseIntError

1.34.0 ยท Sourceยง

impl Debug for TryFromIntError

1.0.0 ยท Sourceยง

impl Debug for RangeFull

1.10.0 ยท Sourceยง

impl Debug for Location<'_>

1.81.0 ยท Sourceยง

impl Debug for PanicMessage<'_>

Sourceยง

impl Debug for core::ptr::Alignment

1.38.0 ยท Sourceยง

impl Debug for Chars<'_>

1.17.0 ยท Sourceยง

impl Debug for EncodeUtf16<'_>

1.0.0 ยท Sourceยง

impl Debug for ParseBoolError

1.79.0 ยท Sourceยง

impl Debug for Utf8Chunks<'_>

1.0.0 ยท Sourceยง

impl Debug for Utf8Error

1.3.0 ยท Sourceยง

impl Debug for AtomicBool

1.34.0 ยท Sourceยง

impl Debug for AtomicI8

1.34.0 ยท Sourceยง

impl Debug for AtomicI16

1.34.0 ยท Sourceยง

impl Debug for AtomicI32

1.34.0 ยท Sourceยง

impl Debug for AtomicI64

1.3.0 ยท Sourceยง

impl Debug for AtomicIsize

1.34.0 ยท Sourceยง

impl Debug for AtomicU8

1.34.0 ยท Sourceยง

impl Debug for AtomicU16

1.34.0 ยท Sourceยง

impl Debug for AtomicU32

1.34.0 ยท Sourceยง

impl Debug for AtomicU64

1.3.0 ยท Sourceยง

impl Debug for AtomicUsize

1.36.0 ยท Sourceยง

impl Debug for Context<'_>

Sourceยง

impl Debug for LocalWaker

1.36.0 ยท Sourceยง

impl Debug for RawWaker

1.36.0 ยท Sourceยง

impl Debug for RawWakerVTable

1.36.0 ยท Sourceยง

impl Debug for Waker

1.27.0 ยท Sourceยง

impl Debug for Duration

1.66.0 ยท Sourceยง

impl Debug for TryFromFloatSecsError

1.0.0 ยท Sourceยง

impl Debug for Arguments<'_>

1.0.0 ยท Sourceยง

impl Debug for Error

Sourceยง

impl Debug for FormattingOptions

1.0.0 ยท Sourceยง

impl Debug for dyn Any

1.0.0 ยท Sourceยง

impl Debug for dyn Any + Send

1.28.0 ยท Sourceยง

impl Debug for dyn Any + Send + Sync

Sourceยง

impl<'a> Debug for Utf8Pattern<'a>

Sourceยง

impl<'a> Debug for Request<'a>

Sourceยง

impl<'a> Debug for Source<'a>

Sourceยง

impl<'a> Debug for core::ffi::c_str::Bytes<'a>

Sourceยง

impl<'a> Debug for BorrowedCursor<'a>

1.10.0 ยท Sourceยง

impl<'a> Debug for PanicInfo<'a>

1.60.0 ยท Sourceยง

impl<'a> Debug for EscapeAscii<'a>

Sourceยง

impl<'a> Debug for CharSearcher<'a>

1.0.0 ยท Sourceยง

impl<'a> Debug for core::str::Bytes<'a>

1.0.0 ยท Sourceยง

impl<'a> Debug for CharIndices<'a>

1.34.0 ยท Sourceยง

impl<'a> Debug for core::str::EscapeDebug<'a>

1.34.0 ยท Sourceยง

impl<'a> Debug for core::str::EscapeDefault<'a>

1.34.0 ยท Sourceยง

impl<'a> Debug for core::str::EscapeUnicode<'a>

1.0.0 ยท Sourceยง

impl<'a> Debug for Lines<'a>

1.0.0 ยท Sourceยง

impl<'a> Debug for LinesAny<'a>

1.34.0 ยท Sourceยง

impl<'a> Debug for SplitAsciiWhitespace<'a>

1.1.0 ยท Sourceยง

impl<'a> Debug for SplitWhitespace<'a>

1.79.0 ยท Sourceยง

impl<'a> Debug for Utf8Chunk<'a>

Sourceยง

impl<'a> Debug for ContextBuilder<'a>

Sourceยง

impl<'a, 'b> Debug for CharSliceSearcher<'a, 'b>

Sourceยง

impl<'a, 'b> Debug for StrSearcher<'a, 'b>

Sourceยง

impl<'a, 'b, const N: usize> Debug for CharArrayRefSearcher<'a, 'b, N>

Sourceยง

impl<'a, 'f: 'a> Debug for VaList<'a, 'f>

1.0.0 ยท Sourceยง

impl<'a, A: Debug + 'a> Debug for core::option::Iter<'a, A>

1.0.0 ยท Sourceยง

impl<'a, A: Debug + 'a> Debug for core::option::IterMut<'a, A>

Sourceยง

impl<'a, I: Debug> Debug for ByRefSized<'a, I>

1.5.0 ยท Sourceยง

impl<'a, P> Debug for MatchIndices<'a, P>
where P: Pattern<Searcher<'a>: Debug>,

1.2.0 ยท Sourceยง

impl<'a, P> Debug for Matches<'a, P>
where P: Pattern<Searcher<'a>: Debug>,

1.5.0 ยท Sourceยง

impl<'a, P> Debug for RMatchIndices<'a, P>
where P: Pattern<Searcher<'a>: Debug>,

1.2.0 ยท Sourceยง

impl<'a, P> Debug for RMatches<'a, P>
where P: Pattern<Searcher<'a>: Debug>,

1.0.0 ยท Sourceยง

impl<'a, P> Debug for core::str::RSplit<'a, P>
where P: Pattern<Searcher<'a>: Debug>,

1.0.0 ยท Sourceยง

impl<'a, P> Debug for core::str::RSplitN<'a, P>
where P: Pattern<Searcher<'a>: Debug>,

1.0.0 ยท Sourceยง

impl<'a, P> Debug for RSplitTerminator<'a, P>
where P: Pattern<Searcher<'a>: Debug>,

1.0.0 ยท Sourceยง

impl<'a, P> Debug for core::str::Split<'a, P>
where P: Pattern<Searcher<'a>: Debug>,

1.0.0 ยท Sourceยง

impl<'a, P> Debug for core::str::SplitN<'a, P>
where P: Pattern<Searcher<'a>: Debug>,

1.0.0 ยท Sourceยง

impl<'a, P> Debug for SplitTerminator<'a, P>
where P: Pattern<Searcher<'a>: Debug>,

1.51.0 ยท Sourceยง

impl<'a, P: Pattern<Searcher<'a>: Debug>> Debug for core::str::SplitInclusive<'a, P>

1.77.0 ยท Sourceยง

impl<'a, T: 'a + Debug, P> Debug for ChunkBy<'a, T, P>

1.77.0 ยท Sourceยง

impl<'a, T: 'a + Debug, P> Debug for ChunkByMut<'a, T, P>

1.0.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for core::result::Iter<'a, T>

1.0.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for core::result::IterMut<'a, T>

1.0.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for Chunks<'a, T>

1.31.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for ChunksExact<'a, T>

1.31.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for ChunksExactMut<'a, T>

1.0.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for ChunksMut<'a, T>

1.31.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for RChunks<'a, T>

1.31.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for RChunksExact<'a, T>

1.31.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for RChunksExactMut<'a, T>

1.31.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for RChunksMut<'a, T>

1.0.0 ยท Sourceยง

impl<'a, T: Debug + 'a> Debug for Windows<'a, T>

Sourceยง

impl<'a, T: Debug + 'a, const N: usize> Debug for core::slice::ArrayChunks<'a, T, N>

Sourceยง

impl<'a, T: Debug + 'a, const N: usize> Debug for ArrayChunksMut<'a, T, N>

Sourceยง

impl<'a, T: Debug + 'a, const N: usize> Debug for ArrayWindows<'a, T, N>

Sourceยง

impl<'a, const N: usize> Debug for CharArraySearcher<'a, N>

Sourceยง

impl<'f> Debug for VaListImpl<'f>

1.0.0 ยท Sourceยง

impl<A: Debug> Debug for Repeat<A>

1.82.0 ยท Sourceยง

impl<A: Debug> Debug for RepeatN<A>

1.0.0 ยท Sourceยง

impl<A: Debug> Debug for core::option::IntoIter<A>

Sourceยง

impl<A: Debug> Debug for IterRange<A>

Sourceยง

impl<A: Debug> Debug for IterRangeFrom<A>

Sourceยง

impl<A: Debug> Debug for IterRangeInclusive<A>

1.0.0 ยท Sourceยง

impl<A: Debug, B: Debug> Debug for Chain<A, B>

1.0.0 ยท Sourceยง

impl<A: Debug, B: Debug> Debug for Zip<A, B>

1.55.0 ยท Sourceยง

impl<B: Debug, C: Debug> Debug for ControlFlow<B, C>

Sourceยง

impl<Dyn: PointeeSized> Debug for DynMetadata<Dyn>

1.64.0 ยท Sourceยง

impl<F> Debug for PollFn<F>

1.34.0 ยท Sourceยง

impl<F> Debug for core::iter::FromFn<F>

1.68.0 ยท Sourceยง

impl<F> Debug for OnceWith<F>

1.68.0 ยท Sourceยง

impl<F> Debug for RepeatWith<F>

Sourceยง

impl<F> Debug for CharPredicateSearcher<'_, F>
where F: FnMut(char) -> bool,

Sourceยง

impl<F> Debug for core::fmt::FromFn<F>
where F: Fn(&mut Formatter<'_>) -> Result,

1.4.0 ยท Sourceยง

impl<F: FnPtr> Debug for F

Sourceยง

impl<G> Debug for FromCoroutine<G>

1.9.0 ยท Sourceยง

impl<H> Debug for BuildHasherDefault<H>

1.9.0 ยท Sourceยง

impl<I> Debug for DecodeUtf16<I>
where I: Iterator<Item = u16> + Debug,

Sourceยง

impl<I, G> Debug for IntersperseWith<I, G>
where I: Iterator + Debug, I::Item: Debug, G: Debug,

1.29.0 ยท Sourceยง

impl<I, U> Debug for Flatten<I>
where I: Debug + Iterator<Item: IntoIterator<IntoIter = U, Item = U::Item>>, U: Debug + Iterator,

Sourceยง

impl<I: Iterator + Debug, F, const N: usize> Debug for MapWindows<I, F, N>

Sourceยง

impl<I: Debug + Iterator> Debug for Intersperse<I>
where I::Item: Clone + Debug,

1.0.0 ยท Sourceยง

impl<I: Debug + Iterator> Debug for Peekable<I>
where I::Item: Debug,

Sourceยง

impl<I: Debug + Iterator, const N: usize> Debug for core::iter::ArrayChunks<I, N>
where I::Item: Debug,

Sourceยง

impl<I: Debug> Debug for FromIter<I>

1.1.0 ยท Sourceยง

impl<I: Debug> Debug for Cloned<I>

1.36.0 ยท Sourceยง

impl<I: Debug> Debug for Copied<I>

1.0.0 ยท Sourceยง

impl<I: Debug> Debug for Cycle<I>

1.0.0 ยท Sourceยง

impl<I: Debug> Debug for Enumerate<I>

1.0.0 ยท Sourceยง

impl<I: Debug> Debug for Fuse<I>

1.0.0 ยท Sourceยง

impl<I: Debug> Debug for Skip<I>

1.28.0 ยท Sourceยง

impl<I: Debug> Debug for StepBy<I>

1.0.0 ยท Sourceยง

impl<I: Debug> Debug for Take<I>

1.9.0 ยท Sourceยง

impl<I: Debug, F> Debug for FilterMap<I, F>

1.9.0 ยท Sourceยง

impl<I: Debug, F> Debug for Inspect<I, F>

1.9.0 ยท Sourceยง

impl<I: Debug, F> Debug for Map<I, F>

1.9.0 ยท Sourceยง

impl<I: Debug, P> Debug for Filter<I, P>

1.57.0 ยท Sourceยง

impl<I: Debug, P> Debug for MapWhile<I, P>

1.9.0 ยท Sourceยง

impl<I: Debug, P> Debug for SkipWhile<I, P>

1.9.0 ยท Sourceยง

impl<I: Debug, P> Debug for TakeWhile<I, P>

1.9.0 ยท Sourceยง

impl<I: Debug, St: Debug, F> Debug for Scan<I, St, F>

1.9.0 ยท Sourceยง

impl<I: Debug, U, F> Debug for FlatMap<I, U, F>
where U: IntoIterator<IntoIter: Debug>,

1.0.0 ยท Sourceยง

impl<Idx: Debug> Debug for core::ops::Range<Idx>

1.0.0 ยท Sourceยง

impl<Idx: Debug> Debug for core::ops::RangeFrom<Idx>

1.26.0 ยท Sourceยง

impl<Idx: Debug> Debug for core::ops::RangeInclusive<Idx>

1.0.0 ยท Sourceยง

impl<Idx: Debug> Debug for RangeTo<Idx>

1.26.0 ยท Sourceยง

impl<Idx: Debug> Debug for RangeToInclusive<Idx>

Sourceยง

impl<Idx: Debug> Debug for core::range::Range<Idx>

Sourceยง

impl<Idx: Debug> Debug for core::range::RangeFrom<Idx>

Sourceยง

impl<Idx: Debug> Debug for core::range::RangeInclusive<Idx>

1.33.0 ยท Sourceยง

impl<Ptr: Debug> Debug for Pin<Ptr>

1.0.0 ยท Sourceยง

impl<T> Debug for (Tโ‚, Tโ‚‚, โ€ฆ, Tโ‚™)
where T: ?Sized + Debug,

This trait is implemented for tuples up to twelve items long.

1.48.0 ยท Sourceยง

impl<T> Debug for Pending<T>

1.9.0 ยท Sourceยง

impl<T> Debug for Empty<T>

Sourceยง

impl<T> Debug for PhantomContravariant<T>
where T: ?Sized,

Sourceยง

impl<T> Debug for PhantomCovariant<T>
where T: ?Sized,

Sourceยง

impl<T> Debug for PhantomInvariant<T>
where T: ?Sized,

1.21.0 ยท Sourceยง

impl<T> Debug for Discriminant<T>

1.28.0 ยท Sourceยง

impl<T> Debug for NonZero<T>

1.3.0 ยท Sourceยง

impl<T> Debug for AtomicPtr<T>

1.41.0 ยท Sourceยง

impl<T> Debug for MaybeUninit<T>

Sourceยง

impl<T, const N: usize> Debug for Mask<T, N>

Sourceยง

impl<T, const N: usize> Debug for Simd<T, N>

1.0.0 ยท Sourceยง

impl<T: Copy + Debug> Debug for Cell<T>

1.0.0 ยท Sourceยง

impl<T: PointeeSized + Debug> Debug for &T

1.0.0 ยท Sourceยง

impl<T: PointeeSized + Debug> Debug for &mut T

1.0.0 ยท Sourceยง

impl<T: PointeeSized> Debug for *const T

1.0.0 ยท Sourceยง

impl<T: PointeeSized> Debug for *mut T

1.25.0 ยท Sourceยง

impl<T: PointeeSized> Debug for NonNull<T>

1.20.0 ยท Sourceยง

impl<T: Debug + ?Sized> Debug for ManuallyDrop<T>

1.17.0 ยท Sourceยง

impl<T: Debug> Debug for Bound<T>

1.0.0 ยท Sourceยง

impl<T: Debug> Debug for Option<T>

1.36.0 ยท Sourceยง

impl<T: Debug> Debug for Poll<T>

1.0.0 ยท Sourceยง

impl<T: Debug> Debug for [T]

1.70.0 ยท Sourceยง

impl<T: Debug> Debug for OnceCell<T>

1.19.0 ยท Sourceยง

impl<T: Debug> Debug for Reverse<T>

1.48.0 ยท Sourceยง

impl<T: Debug> Debug for Ready<T>

1.2.0 ยท Sourceยง

impl<T: Debug> Debug for Once<T>

1.0.0 ยท Sourceยง

impl<T: Debug> Debug for Rev<T>

1.74.0 ยท Sourceยง

impl<T: Debug> Debug for Saturating<T>

1.0.0 ยท Sourceยง

impl<T: Debug> Debug for Wrapping<T>

Sourceยง

impl<T: Debug> Debug for Yeet<T>

1.16.0 ยท Sourceยง

impl<T: Debug> Debug for AssertUnwindSafe<T>

1.0.0 ยท Sourceยง

impl<T: Debug> Debug for core::result::IntoIter<T>

1.9.0 ยท Sourceยง

impl<T: Debug> Debug for core::slice::Iter<'_, T>

1.9.0 ยท Sourceยง

impl<T: Debug> Debug for core::slice::IterMut<'_, T>

1.0.0 ยท Sourceยง

impl<T: Debug, E: Debug> Debug for Result<T, E>

1.80.0 ยท Sourceยง

impl<T: Debug, F> Debug for LazyCell<T, F>

1.34.0 ยท Sourceยง

impl<T: Debug, F> Debug for Successors<T, F>

1.27.0 ยท Sourceยง

impl<T: Debug, P> Debug for core::slice::RSplit<'_, T, P>
where P: FnMut(&T) -> bool,

1.27.0 ยท Sourceยง

impl<T: Debug, P> Debug for RSplitMut<'_, T, P>
where P: FnMut(&T) -> bool,

1.9.0 ยท Sourceยง

impl<T: Debug, P> Debug for core::slice::RSplitN<'_, T, P>
where P: FnMut(&T) -> bool,

1.9.0 ยท Sourceยง

impl<T: Debug, P> Debug for RSplitNMut<'_, T, P>
where P: FnMut(&T) -> bool,

1.9.0 ยท Sourceยง

impl<T: Debug, P> Debug for core::slice::Split<'_, T, P>
where P: FnMut(&T) -> bool,

1.51.0 ยท Sourceยง

impl<T: Debug, P> Debug for core::slice::SplitInclusive<'_, T, P>
where P: FnMut(&T) -> bool,

1.51.0 ยท Sourceยง

impl<T: Debug, P> Debug for SplitInclusiveMut<'_, T, P>
where P: FnMut(&T) -> bool,

1.9.0 ยท Sourceยง

impl<T: Debug, P> Debug for SplitMut<'_, T, P>
where P: FnMut(&T) -> bool,

1.9.0 ยท Sourceยง

impl<T: Debug, P> Debug for core::slice::SplitN<'_, T, P>
where P: FnMut(&T) -> bool,

1.9.0 ยท Sourceยง

impl<T: Debug, P> Debug for SplitNMut<'_, T, P>
where P: FnMut(&T) -> bool,

1.0.0 ยท Sourceยง

impl<T: Debug, const N: usize> Debug for [T; N]

1.40.0 ยท Sourceยง

impl<T: Debug, const N: usize> Debug for core::array::IntoIter<T, N>

1.0.0 ยท Sourceยง

impl<T: ?Sized + Debug> Debug for Ref<'_, T>

1.0.0 ยท Sourceยง

impl<T: ?Sized + Debug> Debug for RefCell<T>

1.0.0 ยท Sourceยง

impl<T: ?Sized + Debug> Debug for RefMut<'_, T>

Sourceยง

impl<T: ?Sized> Debug for SyncUnsafeCell<T>

1.9.0 ยท Sourceยง

impl<T: ?Sized> Debug for UnsafeCell<T>

1.0.0 ยท Sourceยง

impl<T: ?Sized> Debug for PhantomData<T>

Sourceยง

impl<T: ?Sized> Debug for UnsafePinned<T>

Sourceยง

impl<T: ?Sized> Debug for Exclusive<T>

Sourceยง

impl<Y: Debug, R: Debug> Debug for CoroutineState<Y, R>