serde::__private::fmt

Trait Debug

1.0.0 · Source
pub trait Debug {
    // Required method
    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>;
}
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<(), Error>

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§

1.28.0 · Source§

impl Debug for serde::__private::fmt::Alignment

Source§

impl Debug for DebugAsHex

Source§

impl Debug for serde::__private::fmt::Sign

Source§

impl Debug for TryReserveErrorKind

Source§

impl Debug for AsciiChar

1.0.0 · Source§

impl Debug for core::cmp::Ordering

1.34.0 · Source§

impl Debug for Infallible

1.16.0 · Source§

impl Debug for c_void

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

Source§

impl Debug for FullDecoded

Source§

impl Debug for core::num::flt2dec::Sign

Source§

impl Debug for AssertKind

Source§

impl Debug for GetManyMutError

Source§

impl Debug for SearchStep

1.0.0 · Source§

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

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 serde::de::value::Error

Source§

impl Debug for serde::__private::doc::Error

Source§

impl Debug for serde::__private::ptr::Alignment

Source§

impl Debug for Global

Source§

impl Debug for UnorderedKeyError

1.57.0 · Source§

impl Debug for TryReserveError

1.0.0 · Source§

impl Debug for CString

1.64.0 · Source§

impl Debug for FromVecWithNulError

1.64.0 · Source§

impl Debug for IntoStringError

1.64.0 · Source§

impl Debug for NulError

1.17.0 · Source§

impl Debug for alloc::string::Drain<'_>

1.0.0 · Source§

impl Debug for FromUtf8Error

1.0.0 · Source§

impl Debug for FromUtf16Error

1.0.0 · Source§

impl Debug for String

1.28.0 · Source§

impl Debug for Layout

1.50.0 · Source§

impl Debug for LayoutError

Source§

impl Debug for AllocError

1.0.0 · Source§

impl Debug for TypeId

1.34.0 · Source§

impl Debug for TryFromSliceError

1.16.0 · Source§

impl Debug for core::ascii::EscapeDefault

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.20.0 · Source§

impl Debug for ParseCharError

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.0.0 · Source§

impl Debug for ToLowercase

1.0.0 · Source§

impl Debug for ToUppercase

1.59.0 · Source§

impl Debug for TryFromCharError

1.27.0 · Source§

impl Debug for CpuidResult

1.27.0 · Source§

impl Debug for __m128

Source§

impl Debug for __m128bh

1.27.0 · Source§

impl Debug for __m128d

Source§

impl Debug for __m128h

1.27.0 · Source§

impl Debug for __m128i

1.27.0 · Source§

impl Debug for __m256

Source§

impl Debug for __m256bh

1.27.0 · Source§

impl Debug for __m256d

Source§

impl Debug for __m256h

1.27.0 · Source§

impl Debug for __m256i

1.72.0 · Source§

impl Debug for __m512

Source§

impl Debug for __m512bh

1.72.0 · Source§

impl Debug for __m512d

Source§

impl Debug for __m512h

1.72.0 · Source§

impl Debug for __m512i

Source§

impl Debug for bf16

1.3.0 · Source§

impl Debug for CStr

1.69.0 · Source§

impl Debug for FromBytesUntilNulError

1.64.0 · Source§

impl Debug for FromBytesWithNulError

Source§

impl Debug for ResumeTy

Source§

impl Debug for SipHasher13

1.0.0 · Source§

impl Debug for SipHasher

Source§

impl Debug for BorrowedBuf<'_>

1.33.0 · Source§

impl Debug for PhantomPinned

Source§

impl Debug for Assume

1.0.0 · Source§

impl Debug for Ipv4Addr

1.0.0 · Source§

impl Debug for Ipv6Addr

1.0.0 · Source§

impl Debug for AddrParseError

1.0.0 · Source§

impl Debug for SocketAddrV4

1.0.0 · Source§

impl Debug for SocketAddrV6

Source§

impl Debug for Big32x40

Source§

impl Debug for Big8x3

Source§

impl Debug for Number

1.0.0 · Source§

impl Debug for ParseFloatError

Source§

impl Debug for Fp

1.0.0 · Source§

impl Debug for ParseIntError

1.34.0 · Source§

impl Debug for TryFromIntError

Source§

impl Debug for Decoded

1.0.0 · Source§

impl Debug for RangeFull

1.81.0 · Source§

impl Debug for PanicMessage<'_>

1.0.0 · Source§

impl Debug for ParseBoolError

1.0.0 · Source§

impl Debug for Utf8Error

1.38.0 · Source§

impl Debug for Chars<'_>

1.17.0 · Source§

impl Debug for EncodeUtf16<'_>

1.79.0 · Source§

impl Debug for Utf8Chunks<'_>

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 serde::__private::fmt::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 + Sync + Send

Source§

impl<'a> Debug for Unexpected<'a>

Source§

impl<'a> Debug for Part<'a>

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 Location<'a>

1.10.0 · Source§

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

1.60.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.34.0 · Source§

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

1.34.0 · Source§

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

1.34.0 · Source§

impl<'a> Debug for core::str::iter::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 CharSearcher<'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> Debug for VaList<'a, 'f>
where 'f: 'a,

1.0.0 · Source§

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

1.0.0 · Source§

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

Source§

impl<'a, E> Debug for BytesDeserializer<'a, E>

Source§

impl<'a, E> Debug for CowStrDeserializer<'a, E>

Source§

impl<'a, E> Debug for StrDeserializer<'a, E>

Source§

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

1.21.0 · Source§

impl<'a, I, A> Debug for Splice<'a, I, A>
where I: Debug + Iterator + 'a, A: Debug + Allocator + 'a, <I as Iterator>::Item: Debug,

1.5.0 · Source§

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

1.2.0 · Source§

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

1.5.0 · Source§

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

1.2.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.51.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.17.0 · Source§

impl<'a, T> Debug for alloc::collections::btree::set::Range<'a, T>
where T: Debug + 'a,

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.31.0 · Source§

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

1.31.0 · Source§

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

1.0.0 · Source§

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

1.31.0 · Source§

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

1.31.0 · Source§

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

1.31.0 · Source§

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

1.31.0 · Source§

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

1.0.0 · Source§

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

1.6.0 · Source§

impl<'a, T, A> Debug for alloc::collections::binary_heap::Drain<'a, T, A>
where T: Debug + 'a, A: Debug + Allocator,

Source§

impl<'a, T, A> Debug for DrainSorted<'a, T, A>
where T: Debug + Ord, A: Debug + Allocator,

Source§

impl<'a, T, F, A> Debug for alloc::vec::extract_if::ExtractIf<'a, T, F, A>
where T: Debug, F: Debug + FnMut(&mut T) -> bool, A: Debug + Allocator,

1.77.0 · Source§

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

1.77.0 · Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'de, E> Debug for BorrowedBytesDeserializer<'de, E>

Source§

impl<'de, E> Debug for BorrowedStrDeserializer<'de, E>

Source§

impl<'de, I, E> Debug for MapDeserializer<'de, I, E>
where I: Iterator + Debug, I::Item: Pair, <I::Item as Pair>::Second: Debug,

Source§

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

1.0.0 · Source§

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

1.82.0 · Source§

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

1.0.0 · Source§

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

Source§

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

Source§

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

Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

impl<A, Z, Y, X, W, V, U, T> Debug for (A, Z, Y, X, W, V, U, T)
where A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,

Source§

impl<A: Debug> Debug for EnumAccessDeserializer<A>

Source§

impl<A: Debug> Debug for MapAccessDeserializer<A>

Source§

impl<A: Debug> Debug for SeqAccessDeserializer<A>

1.0.0 · Source§

impl<B> Debug for Cow<'_, B>
where B: Debug + ToOwned + ?Sized, <B as ToOwned>::Owned: Debug,

1.0.0 · Source§

impl<B, A, Z, Y, X, W, V, U, T> Debug for (B, A, Z, Y, X, W, V, U, T)
where B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,

1.55.0 · Source§

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

1.0.0 · Source§

impl<C, B, A, Z, Y, X, W, V, U, T> Debug for (C, B, A, Z, Y, X, W, V, U, T)
where C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,

1.0.0 · Source§

impl<D, C, B, A, Z, Y, X, W, V, U, T> Debug for (D, C, B, A, Z, Y, X, W, V, U, T)
where D: Debug, C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,

Source§

impl<Dyn> Debug for DynMetadata<Dyn>
where Dyn: ?Sized,

Source§

impl<E> Debug for BoolDeserializer<E>

Source§

impl<E> Debug for CharDeserializer<E>

Source§

impl<E> Debug for F32Deserializer<E>

Source§

impl<E> Debug for F64Deserializer<E>

Source§

impl<E> Debug for I8Deserializer<E>

Source§

impl<E> Debug for I16Deserializer<E>

Source§

impl<E> Debug for I32Deserializer<E>

Source§

impl<E> Debug for I64Deserializer<E>

Source§

impl<E> Debug for I128Deserializer<E>

Source§

impl<E> Debug for IsizeDeserializer<E>

Source§

impl<E> Debug for StringDeserializer<E>

Source§

impl<E> Debug for U8Deserializer<E>

Source§

impl<E> Debug for U16Deserializer<E>

Source§

impl<E> Debug for U32Deserializer<E>

Source§

impl<E> Debug for U64Deserializer<E>

Source§

impl<E> Debug for U128Deserializer<E>

Source§

impl<E> Debug for UnitDeserializer<E>

Source§

impl<E> Debug for UsizeDeserializer<E>

Source§

impl<E> Debug for Capture<E, TryCaptureWithDebug>
where E: Printable,

Source§

impl<E> Debug for Capture<E, TryCaptureWithoutDebug>

1.0.0 · Source§

impl<E, D, C, B, A, Z, Y, X, W, V, U, T> Debug for (E, D, C, B, A, Z, Y, X, W, V, U, T)
where E: Debug, D: Debug, C: Debug, B: Debug, A: Debug, Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,

1.64.0 · Source§

impl<F> Debug for PollFn<F>

1.34.0 · Source§

impl<F> Debug for core::iter::sources::from_fn::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 serde::__private::fmt::FromFn<F>
where F: Fn(&mut Formatter<'_>) -> Result<(), Error>,

1.4.0 · Source§

impl<F> Debug for F
where F: FnPtr,

1.9.0 · Source§

impl<H> Debug for BuildHasherDefault<H>

Source§

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

1.9.0 · Source§

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

1.1.0 · Source§

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

1.36.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.28.0 · Source§

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

1.0.0 · Source§

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

Source§

impl<I, E> Debug for SeqDeserializer<I, E>
where I: Debug,

1.9.0 · Source§

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

1.9.0 · Source§

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

1.9.0 · Source§

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

Source§

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

Source§

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

1.9.0 · Source§

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

1.57.0 · Source§

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

1.9.0 · Source§

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

1.9.0 · Source§

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

1.9.0 · Source§

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

1.29.0 · Source§

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

1.9.0 · Source§

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

Source§

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

1.0.0 · Source§

impl<Idx> Debug for core::ops::range::Range<Idx>
where Idx: Debug,

1.0.0 · Source§

impl<Idx> Debug for core::ops::range::RangeFrom<Idx>
where Idx: Debug,

1.26.0 · Source§

impl<Idx> Debug for core::ops::range::RangeInclusive<Idx>
where Idx: Debug,

1.0.0 · Source§

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

1.26.0 · Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<K> Debug for alloc::collections::btree::set::Cursor<'_, K>
where K: Debug,

Source§

impl<K, A> Debug for alloc::collections::btree::set::CursorMut<'_, K, A>
where K: Debug,

Source§

impl<K, A> Debug for alloc::collections::btree::set::CursorMutKey<'_, K, A>
where K: Debug,

Source§

impl<K, V> Debug for alloc::collections::btree::map::Cursor<'_, K, V>
where K: Debug, V: Debug,

1.17.0 · Source§

impl<K, V> Debug for alloc::collections::btree::map::Iter<'_, K, V>
where K: Debug, V: Debug,

1.17.0 · Source§

impl<K, V> Debug for alloc::collections::btree::map::IterMut<'_, K, V>
where K: Debug, V: Debug,

1.17.0 · Source§

impl<K, V> Debug for Keys<'_, K, V>
where K: Debug,

1.17.0 · Source§

impl<K, V> Debug for alloc::collections::btree::map::Range<'_, K, V>
where K: Debug, V: Debug,

1.17.0 · Source§

impl<K, V> Debug for RangeMut<'_, K, V>
where K: Debug, V: Debug,

1.17.0 · Source§

impl<K, V> Debug for Values<'_, K, V>
where V: Debug,

1.10.0 · Source§

impl<K, V> Debug for ValuesMut<'_, K, V>
where V: Debug,

1.12.0 · Source§

impl<K, V, A> Debug for alloc::collections::btree::map::entry::Entry<'_, K, V, A>
where K: Debug + Ord, V: Debug, A: Allocator + Clone,

1.12.0 · Source§

impl<K, V, A> Debug for alloc::collections::btree::map::entry::OccupiedEntry<'_, K, V, A>
where K: Debug + Ord, V: Debug, A: Allocator + Clone,

Source§

impl<K, V, A> Debug for OccupiedError<'_, K, V, A>
where K: Debug + Ord, V: Debug, A: Allocator + Clone,

1.12.0 · Source§

impl<K, V, A> Debug for alloc::collections::btree::map::entry::VacantEntry<'_, K, V, A>
where K: Debug + Ord, A: Allocator + Clone,

1.0.0 · Source§

impl<K, V, A> Debug for BTreeMap<K, V, A>
where K: Debug, V: Debug, A: Allocator + Clone,

Source§

impl<K, V, A> Debug for alloc::collections::btree::map::CursorMut<'_, K, V, A>
where K: Debug, V: Debug,

Source§

impl<K, V, A> Debug for alloc::collections::btree::map::CursorMutKey<'_, K, V, A>
where K: Debug, V: Debug,

1.17.0 · Source§

impl<K, V, A> Debug for alloc::collections::btree::map::IntoIter<K, V, A>
where K: Debug, V: Debug, A: Allocator + Clone,

1.54.0 · Source§

impl<K, V, A> Debug for IntoKeys<K, V, A>
where K: Debug, A: Allocator + Clone,

1.54.0 · Source§

impl<K, V, A> Debug for IntoValues<K, V, A>
where V: Debug, A: Allocator + Clone,

Source§

impl<K, V, F> Debug for alloc::collections::btree::map::ExtractIf<'_, K, V, F>
where K: Debug, V: Debug, F: FnMut(&K, &mut V) -> bool,

1.33.0 · Source§

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

1.0.0 · Source§

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

1.17.0 · Source§

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

1.36.0 · Source§

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

1.0.0 · Source§

impl<T> Debug for *const T
where T: ?Sized,

1.0.0 · Source§

impl<T> Debug for *mut T
where T: ?Sized,

1.0.0 · Source§

impl<T> Debug for &T
where T: Debug + ?Sized,

1.0.0 · Source§

impl<T> Debug for &mut T
where T: Debug + ?Sized,

1.0.0 · Source§

impl<T> Debug for [T]
where T: Debug,

1.0.0 · Source§

impl<T> Debug for (T₁, T₂, …, Tₙ)
where T: Debug + ?Sized,

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

1.25.0 · Source§

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

Source§

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

1.0.0 · Source§

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

Source§

impl<T> Debug for ThinBox<T>
where T: Debug + ?Sized,

1.17.0 · Source§

impl<T> Debug for alloc::collections::binary_heap::Iter<'_, T>
where T: Debug,

1.17.0 · Source§

impl<T> Debug for alloc::collections::btree::set::Iter<'_, T>
where T: Debug,

1.17.0 · Source§

impl<T> Debug for SymmetricDifference<'_, T>
where T: Debug,

1.17.0 · Source§

impl<T> Debug for Union<'_, T>
where T: Debug,

1.17.0 · Source§

impl<T> Debug for alloc::collections::linked_list::Iter<'_, T>
where T: Debug,

1.17.0 · Source§

impl<T> Debug for alloc::collections::linked_list::IterMut<'_, T>
where T: Debug,

1.17.0 · Source§

impl<T> Debug for alloc::collections::vec_deque::iter::Iter<'_, T>
where T: Debug,

1.17.0 · Source§

impl<T> Debug for alloc::collections::vec_deque::iter_mut::IterMut<'_, T>
where T: Debug,

1.70.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

Source§

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

1.9.0 · Source§

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

1.19.0 · Source§

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

Source§

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

1.48.0 · Source§

impl<T> Debug for Pending<T>

1.48.0 · Source§

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

1.0.0 · Source§

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

1.9.0 · Source§

impl<T> Debug for Empty<T>

1.2.0 · Source§

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

1.20.0 · Source§

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

1.21.0 · Source§

impl<T> Debug for Discriminant<T>

1.28.0 · Source§

impl<T> Debug for NonZero<T>

1.74.0 · Source§

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

1.0.0 · Source§

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

Source§

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

1.16.0 · Source§

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

1.0.0 · Source§

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

1.9.0 · Source§

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

1.9.0 · Source§

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

1.3.0 · Source§

impl<T> Debug for AtomicPtr<T>

Source§

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

1.41.0 · Source§

impl<T> Debug for MaybeUninit<T>

Source§

impl<T, A> Debug for alloc::collections::btree::set::entry::Entry<'_, T, A>
where T: Debug + Ord, A: Allocator + Clone,

1.0.0 · Source§

impl<T, A> Debug for Vec<T, A>
where T: Debug, A: Allocator,

1.0.0 · Source§

impl<T, A> Debug for Box<T, A>
where T: Debug + ?Sized, A: Allocator,

1.4.0 · Source§

impl<T, A> Debug for BinaryHeap<T, A>
where T: Debug, A: Allocator,

1.17.0 · Source§

impl<T, A> Debug for alloc::collections::binary_heap::IntoIter<T, A>
where T: Debug, A: Allocator,

Source§

impl<T, A> Debug for IntoIterSorted<T, A>
where T: Debug, A: Debug + Allocator,

1.17.0 · Source§

impl<T, A> Debug for PeekMut<'_, T, A>
where T: Ord + Debug, A: Allocator,

Source§

impl<T, A> Debug for alloc::collections::btree::set::entry::OccupiedEntry<'_, T, A>
where T: Debug + Ord, A: Allocator + Clone,

Source§

impl<T, A> Debug for alloc::collections::btree::set::entry::VacantEntry<'_, T, A>
where T: Debug + Ord, A: Allocator + Clone,

1.0.0 · Source§

impl<T, A> Debug for BTreeSet<T, A>
where T: Debug, A: Allocator + Clone,

1.17.0 · Source§

impl<T, A> Debug for Difference<'_, T, A>
where T: Debug, A: Allocator + Clone,

1.17.0 · Source§

impl<T, A> Debug for Intersection<'_, T, A>
where T: Debug, A: Allocator + Clone,

1.0.0 · Source§

impl<T, A> Debug for alloc::collections::btree::set::IntoIter<T, A>
where T: Debug, A: Debug + Allocator + Clone,

Source§

impl<T, A> Debug for alloc::collections::linked_list::Cursor<'_, T, A>
where T: Debug, A: Allocator,

Source§

impl<T, A> Debug for alloc::collections::linked_list::CursorMut<'_, T, A>
where T: Debug, A: Allocator,

1.17.0 · Source§

impl<T, A> Debug for alloc::collections::linked_list::IntoIter<T, A>
where T: Debug, A: Allocator,

1.0.0 · Source§

impl<T, A> Debug for LinkedList<T, A>
where T: Debug, A: Allocator,

1.17.0 · Source§

impl<T, A> Debug for alloc::collections::vec_deque::drain::Drain<'_, T, A>
where T: Debug, A: Allocator,

1.17.0 · Source§

impl<T, A> Debug for alloc::collections::vec_deque::into_iter::IntoIter<T, A>
where T: Debug, A: Allocator,

1.0.0 · Source§

impl<T, A> Debug for VecDeque<T, A>
where T: Debug, A: Allocator,

1.0.0 · Source§

impl<T, A> Debug for Rc<T, A>
where T: Debug + ?Sized, A: Allocator,

Source§

impl<T, A> Debug for UniqueRc<T, A>
where T: Debug + ?Sized, A: Allocator,

1.4.0 · Source§

impl<T, A> Debug for alloc::rc::Weak<T, A>
where A: Allocator, T: ?Sized,

1.0.0 · Source§

impl<T, A> Debug for Arc<T, A>
where T: Debug + ?Sized, A: Allocator,

1.4.0 · Source§

impl<T, A> Debug for alloc::sync::Weak<T, A>
where A: Allocator, T: ?Sized,

1.17.0 · Source§

impl<T, A> Debug for alloc::vec::drain::Drain<'_, T, A>
where T: Debug, A: Allocator,

1.13.0 · Source§

impl<T, A> Debug for alloc::vec::into_iter::IntoIter<T, A>
where T: Debug, A: Allocator,

1.0.0 · Source§

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

Source§

impl<T, F> Debug for alloc::collections::linked_list::ExtractIf<'_, T, F>
where T: Debug, F: FnMut(&mut T) -> bool,

1.80.0 · Source§

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

1.34.0 · Source§

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

Source§

impl<T, F, A> Debug for alloc::collections::btree::set::ExtractIf<'_, T, F, A>
where A: Allocator + Clone, T: Debug, F: FnMut(&T) -> bool,

1.27.0 · Source§

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

1.27.0 · Source§

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

1.9.0 · Source§

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

1.9.0 · Source§

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

1.9.0 · Source§

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

1.51.0 · Source§

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

1.51.0 · Source§

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

1.9.0 · Source§

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

1.9.0 · Source§

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

1.9.0 · Source§

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

1.0.0 · Source§

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

1.40.0 · Source§

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

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<U, T> Debug for (U, T)
where U: Debug, T: Debug + ?Sized,

1.0.0 · Source§

impl<V, U, T> Debug for (V, U, T)
where V: Debug, U: Debug, T: Debug + ?Sized,

1.0.0 · Source§

impl<W, V, U, T> Debug for (W, V, U, T)
where W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,

1.0.0 · Source§

impl<X, W, V, U, T> Debug for (X, W, V, U, T)
where X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,

Source§

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

1.0.0 · Source§

impl<Y, X, W, V, U, T> Debug for (Y, X, W, V, U, T)
where Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,

1.0.0 · Source§

impl<Z, Y, X, W, V, U, T> Debug for (Z, Y, X, W, V, U, T)
where Z: Debug, Y: Debug, X: Debug, W: Debug, V: Debug, U: Debug, T: Debug + ?Sized,