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
derive
d 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
enum
s, 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 (libstd
, libcore
, liballoc
, 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 };
assert_eq!(format!("The origin is: {origin:#?}"),
"The origin is: Point {
x: 0,
y: 0,
}");
Required Methods
sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the given formatter.
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
impl Debug for hashbrown_tstd::TryReserveError
impl Debug for PolledOk
impl Debug for OCallError
impl Debug for AddressKind
impl Debug for DIR
impl Debug for MapAddr
impl Debug for FutexClockId
impl Debug for FutexOp
impl Debug for PageType
impl Debug for Feature
impl Debug for Version
impl Debug for ExceptionType
impl Debug for ExceptionVector
impl Debug for HandleResult
impl Debug for PceError
impl Debug for QcnlError
impl Debug for Quote3Error
impl Debug for SgxStatus
impl Debug for DirIndex
impl Debug for EcResult
impl Debug for RsaKeyType
impl Debug for RsaResult
impl Debug for PckCertFlag
impl Debug for ProdType
impl Debug for QeType
impl Debug for QlAttestationAlgorithmId
impl Debug for QlCertKeyType
impl Debug for QlConfigVersion
impl Debug for QlLogLevel
impl Debug for QlPathType
impl Debug for QlQvResult
impl Debug for QlRequestPolicy
impl Debug for QvPathType
impl Debug for DhSessionRole
impl Debug for EnclaveMode
impl Debug for KeyName
impl Debug for ProtectPerm
impl Debug for RaKeyType
impl Debug for QuoteSignType
impl Debug for SwitchlessWokerEvent
impl Debug for SwitchlessWokerType
impl Debug for SgxDeviceStatus
impl Debug for sgx_tstd::cmp::Ordering
impl Debug for TryReserveErrorKind
impl Debug for Infallible
impl Debug for VarError
impl Debug for c_void
impl Debug for ErrorKind
impl Debug for SeekFrom
impl Debug for IpAddr
impl Debug for Ipv6MulticastScope
impl Debug for Shutdown
impl Debug for SocketAddr
impl Debug for FpCategory
impl Debug for IntErrorKind
impl Debug for SearchStep
impl Debug for sgx_tstd::sync::atomic::Ordering
impl Debug for TcsPolicy
impl Debug for sgx_tstd::fmt::Alignment
impl Debug for Which
impl Debug for bool
impl Debug for char
impl Debug for f32
impl Debug for f64
impl Debug for i8
impl Debug for i16
impl Debug for i32
impl Debug for i64
impl Debug for i128
impl Debug for isize
impl Debug for !
impl Debug for str
impl Debug for u8
impl Debug for u16
impl Debug for u32
impl Debug for u64
impl Debug for u128
impl Debug for ()
impl Debug for usize
impl Debug for AlighAllocErr
impl Debug for AlignLayout
impl Debug for AlignLayoutErr
impl Debug for AlignReq
impl Debug for sgx_oc::linux::ocall::cpuid::CpuidResult
impl Debug for HostBuffer
impl Debug for HeapBuffer
impl Debug for AddrInfoHints
impl Debug for MsgHdrFlags
impl Debug for RsrvMemAllocErr
impl Debug for MapObject<Nothing>
impl Debug for Nothing
impl Debug for Zero
impl Debug for sgx_sync::barrier::Barrier
impl Debug for sgx_sync::barrier::BarrierWaitResult
impl Debug for FutexFlags
impl Debug for sgx_sync::once::Once
impl Debug for sgx_sync::once::OnceState
impl Debug for Timespec
impl Debug for OcBuffer
impl Debug for PageFlags
impl Debug for PageInfo
impl Debug for PageRange
impl Debug for Rng
impl Debug for AlignKeyRequest
impl Debug for AlignReport2Mac
impl Debug for AlignReport
impl Debug for AlignReportData
impl Debug for AlignTargetInfo
impl Debug for TcsId
impl Debug for CpuContext
impl Debug for ExceptionInfo
impl Debug for Handle
impl Debug for CssBody
impl Debug for CssBuffer
impl Debug for CssHeader
impl Debug for CssKey
impl Debug for DataDir
impl Debug for ElRangeConfig
impl Debug for EnclaveCss
impl Debug for MetaData
impl Debug for AlignEc256PrivateKey
impl Debug for AlignKey128bit
impl Debug for AlignKey256bit
impl Debug for AlignMac128bit
impl Debug for AlignMac256bit
impl Debug for Ec256PrivateKey
impl Debug for Ec256PublicKey
impl Debug for Ec256Signature
impl Debug for Rsa2048Key
impl Debug for Rsa2048Param
impl Debug for Rsa2048PrivKey
impl Debug for Rsa2048PubKey
impl Debug for Rsa2048Signature
impl Debug for Rsa3072Key
impl Debug for Rsa3072Param
impl Debug for Rsa3072PrivKey
impl Debug for Rsa3072PubKey
impl Debug for Rsa3072Signature
impl Debug for Sha1Hash
impl Debug for Sha256Hash
impl Debug for Sha384Hash
impl Debug for Sm3Hash
impl Debug for PceInfo
impl Debug for QlAuthData
impl Debug for QlCertificationData
impl Debug for QlEcdsaSigData
impl Debug for QlPPIDRsa3072EncryptedCertInfo
impl Debug for QlQe3Id
impl Debug for QlQeReportInfo
impl Debug for QlQvSupplemental
impl Debug for QlQveCollateralParam
impl Debug for Quote3
impl Debug for QuoteHeader
impl Debug for CDhMsg1
impl Debug for CDhMsg2
impl Debug for CDhMsg3
impl Debug for CDhMsg3Body
impl Debug for CDhSession
impl Debug for CEnclaveIdentity
impl Debug for CRaMsg1
impl Debug for CRaMsg2
impl Debug for CRaMsg3
impl Debug for PsSecPropDesc
impl Debug for AttKeyId
impl Debug for AttKeyIdExt
impl Debug for BaseName
impl Debug for PlatformInfo
impl Debug for QeReportInfo
impl Debug for QlAttKeyId
impl Debug for Quote
impl Debug for QuoteNonce
impl Debug for Spid
impl Debug for UpdateInfoBit
impl Debug for CDcapMRaMsg2
impl Debug for CDcapRaMsg1
impl Debug for CDcapRaMsg3
impl Debug for CDcapURaMsg2
impl Debug for EnclaveIdentity
impl Debug for timespec
impl Debug for Report2
impl Debug for Report2Mac
impl Debug for TeeAttributes
impl Debug for TeeCpuSvn
impl Debug for TeeMeasurement
impl Debug for TeeReportData
impl Debug for TeeReportType
impl Debug for CAesGcmData
impl Debug for CSealedData
impl Debug for Attributes
impl Debug for AttributesFlags
impl Debug for ConfigId
impl Debug for CpuSvn
impl Debug for KeyId
impl Debug for KeyPolicy
impl Debug for KeyRequest
impl Debug for Measurement
impl Debug for MiscAttribute
impl Debug for MiscSelect
impl Debug for sgx_types::types::Report
impl Debug for ReportBody
impl Debug for ReportData
impl Debug for TargetInfo
impl Debug for SwitchlessConfig
impl Debug for SwitchlessWokerStats
impl Debug for EcdsaSigDataV4
impl Debug for QeReportCertificationData
impl Debug for Quote4
impl Debug for Quote4Header
impl Debug for Report2Body
impl Debug for TeeInfo
impl Debug for TeeTcbInfo
impl Debug for TeeTcbSvn
impl Debug for KssConfig
impl Debug for AllocError
impl Debug for Global
impl Debug for Layout
impl Debug for LayoutError
impl Debug for TypeId
impl Debug for TryFromSliceError
impl Debug for sgx_tstd::ascii::EscapeDefault
impl Debug for BorrowError
impl Debug for BorrowMutError
impl Debug for CharTryFromError
impl Debug for DecodeUtf16Error
impl Debug for sgx_tstd::char::EscapeDebug
impl Debug for sgx_tstd::char::EscapeDefault
impl Debug for sgx_tstd::char::EscapeUnicode
impl Debug for ParseCharError
impl Debug for ToLowercase
impl Debug for ToUppercase
impl Debug for TryFromCharError
impl Debug for DefaultHasher
impl Debug for RandomState
impl Debug for sgx_tstd::collections::TryReserveError
impl Debug for Enclave
impl Debug for Args
impl Debug for ArgsOs
impl Debug for JoinPathsError
impl Debug for SplitPaths<'_>
impl Debug for Vars
impl Debug for VarsOs
impl Debug for CStr
impl Debug for CString
impl Debug for FromBytesWithNulError
impl Debug for FromVecWithNulError
impl Debug for IntoStringError
impl Debug for NulError
impl Debug for OsStr
impl Debug for OsString
impl Debug for SipHasher
impl Debug for BorrowedBuf<'_>
impl Debug for sgx_tstd::io::Empty
impl Debug for sgx_tstd::io::Error
impl Debug for sgx_tstd::io::Repeat
impl Debug for Sink
impl Debug for Stderr
impl Debug for StderrLock<'_>
impl Debug for Stdin
impl Debug for StdinLock<'_>
impl Debug for Stdout
impl Debug for StdoutLock<'_>
impl Debug for WriterPanicked
impl Debug for PhantomPinned
impl Debug for Assume
impl Debug for AddrParseError
impl Debug for Ipv4Addr
impl Debug for Ipv6Addr
impl Debug for SocketAddrV4
impl Debug for SocketAddrV6
impl Debug for NonZeroI8
impl Debug for NonZeroI16
impl Debug for NonZeroI32
impl Debug for NonZeroI64
impl Debug for NonZeroI128
impl Debug for NonZeroIsize
impl Debug for NonZeroU8
impl Debug for NonZeroU16
impl Debug for NonZeroU32
impl Debug for NonZeroU64
impl Debug for NonZeroU128
impl Debug for NonZeroUsize
impl Debug for ParseFloatError
impl Debug for ParseIntError
impl Debug for TryFromIntError
impl Debug for RangeFull
impl Debug for BorrowedFd<'_>
impl Debug for OwnedFd
impl Debug for Components<'_>
impl Debug for Display<'_>
impl Debug for sgx_tstd::path::Iter<'_>
impl Debug for Path
impl Debug for PathBuf
impl Debug for StripPrefixError
impl Debug for sgx_tstd::ptr::Alignment
impl Debug for Chars<'_>
impl Debug for EncodeUtf16<'_>
impl Debug for ParseBoolError
impl Debug for Utf8Chunks<'_>
impl Debug for Utf8Error
impl Debug for sgx_tstd::string::Drain<'_>
impl Debug for FromUtf8Error
impl Debug for FromUtf16Error
impl Debug for String
impl Debug for AtomicBool
impl Debug for AtomicI8
impl Debug for AtomicI16
impl Debug for AtomicI32
impl Debug for AtomicI64
impl Debug for AtomicIsize
impl Debug for AtomicU8
impl Debug for AtomicU16
impl Debug for AtomicU32
impl Debug for AtomicU64
impl Debug for AtomicUsize
impl Debug for sgx_tstd::sync::Barrier
impl Debug for sgx_tstd::sync::BarrierWaitResult
impl Debug for Condvar
impl Debug for sgx_tstd::sync::Once
impl Debug for sgx_tstd::sync::OnceState
impl Debug for WaitTimeoutResult
impl Debug for Context<'_>
impl Debug for RawWaker
impl Debug for RawWakerVTable
impl Debug for Waker
impl Debug for AccessError
impl Debug for Thread
impl Debug for ThreadId
impl Debug for Duration
impl Debug for FromFloatSecsError
impl Debug for Instant
impl Debug for SystemTime
impl Debug for SystemTimeError
impl Debug for DirBuilder
impl Debug for DirEntry
impl Debug for File
impl Debug for FileTimes
impl Debug for FileType
impl Debug for Metadata
impl Debug for OpenOptions
impl Debug for Permissions
impl Debug for ReadDir
impl Debug for core::core_arch::x86::cpuid::CpuidResult
impl Debug for __m128
impl Debug for __m128bh
impl Debug for __m128d
impl Debug for __m128i
impl Debug for __m256
impl Debug for __m256bh
impl Debug for __m256d
impl Debug for __m256i
impl Debug for __m512
impl Debug for __m512bh
impl Debug for __m512d
impl Debug for __m512i
impl Debug for FromBytesUntilNulError
impl Debug for Arguments<'_>
impl Debug for sgx_tstd::fmt::Error
impl Debug for _Unwind_Reason_Code
impl Debug for dyn Any + 'static
impl Debug for dyn Any + Send + 'static
impl Debug for dyn Any + Sync + Send + 'static
impl<'a> Debug for Component<'a>
impl<'a> Debug for Prefix<'a>
impl<'a> Debug for HostSlice<'a>
impl<'a> Debug for HostSliceMut<'a>
impl<'a> Debug for MsgHdr<'a>
impl<'a> Debug for MsgHdrMut<'a>
impl<'a> Debug for ThreadControl<'a>
impl<'a> Debug for Demand<'a>
impl<'a> Debug for BorrowedCursor<'a>
impl<'a> Debug for IoSlice<'a>
impl<'a> Debug for IoSliceMut<'a>
impl<'a> Debug for Location<'a>
impl<'a> Debug for PanicInfo<'a>
impl<'a> Debug for Ancestors<'a>
impl<'a> Debug for PrefixComponent<'a>
impl<'a> Debug for EscapeAscii<'a>
impl<'a> Debug for CharSearcher<'a>
impl<'a> Debug for sgx_tstd::str::Bytes<'a>
impl<'a> Debug for CharIndices<'a>
impl<'a> Debug for sgx_tstd::str::EscapeDebug<'a>
impl<'a> Debug for sgx_tstd::str::EscapeDefault<'a>
impl<'a> Debug for sgx_tstd::str::EscapeUnicode<'a>
impl<'a> Debug for sgx_tstd::str::Lines<'a>
impl<'a> Debug for LinesAny<'a>
impl<'a> Debug for SplitAsciiWhitespace<'a>
impl<'a> Debug for SplitWhitespace<'a>
impl<'a> Debug for Utf8Chunk<'a>
impl<'a> Debug for Source<'a>
impl<'a, 'b> Debug for CharSliceSearcher<'a, 'b>
impl<'a, 'b> Debug for StrSearcher<'a, 'b>
impl<'a, 'b, const N: usize> Debug for CharArrayRefSearcher<'a, 'b, N>
impl<'a, 'f> Debug for VaList<'a, 'f>where
'f: 'a,
impl<'a, A> Debug for sgx_tstd::option::Iter<'a, A>where
A: 'a + Debug,
impl<'a, A> Debug for sgx_tstd::option::IterMut<'a, A>where
A: 'a + Debug,
impl<'a, I> Debug for ByRefSized<'a, I>where
I: Debug,
impl<'a, I, A> Debug for Splice<'a, I, A>where
I: 'a + Debug + Iterator,
A: 'a + Debug + Allocator,
<I as Iterator>::Item: Debug,
impl<'a, K, F> Debug for sgx_tstd::collections::hash_set::DrainFilter<'a, K, F>where
F: FnMut(&K) -> bool,
impl<'a, K, V, F> Debug for sgx_tstd::collections::hash_map::DrainFilter<'a, K, V, F>where
F: FnMut(&K, &mut V) -> bool,
impl<'a, P> Debug for MatchIndices<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, P> Debug for Matches<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, P> Debug for RMatchIndices<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, P> Debug for RMatches<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, P> Debug for sgx_tstd::str::RSplit<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, P> Debug for sgx_tstd::str::RSplitN<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, P> Debug for RSplitTerminator<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, P> Debug for sgx_tstd::str::Split<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, P> Debug for sgx_tstd::str::SplitInclusive<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, P> Debug for sgx_tstd::str::SplitN<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, P> Debug for SplitTerminator<'a, P>where
P: Pattern<'a>,
<P as Pattern<'a>>::Searcher: Debug,
impl<'a, T> Debug for sgx_tstd::collections::binary_heap::Drain<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for DrainSorted<'a, T>where
T: Debug + Ord,
impl<'a, T> Debug for sgx_tstd::collections::btree_set::Range<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for sgx_tstd::result::Iter<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for sgx_tstd::result::IterMut<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for Chunks<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for ChunksExact<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for ChunksExactMut<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for ChunksMut<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for RChunks<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for RChunksExact<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for RChunksExactMut<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for RChunksMut<'a, T>where
T: 'a + Debug,
impl<'a, T> Debug for Windows<'a, T>where
T: 'a + Debug,
impl<'a, T, F, A> Debug for sgx_tstd::vec::DrainFilter<'a, T, F, A>where
T: Debug,
F: Debug + FnMut(&mut T) -> bool,
A: Debug + Allocator,
impl<'a, T, P> Debug for GroupBy<'a, T, P>where
T: 'a + Debug,
impl<'a, T, P> Debug for GroupByMut<'a, T, P>where
T: 'a + Debug,
impl<'a, T, const N: usize> Debug for sgx_tstd::slice::ArrayChunks<'a, T, N>where
T: 'a + Debug,
impl<'a, T, const N: usize> Debug for ArrayChunksMut<'a, T, N>where
T: 'a + Debug,
impl<'a, T, const N: usize> Debug for ArrayWindows<'a, T, N>where
T: 'a + Debug,
impl<'a, const N: usize> Debug for CharArraySearcher<'a, N>
impl<'f> Debug for VaListImpl<'f>
impl<A> Debug for sgx_tstd::iter::Repeat<A>where
A: Debug,
impl<A> Debug for sgx_tstd::option::IntoIter<A>where
A: Debug,
impl<A, B> Debug for sgx_tstd::iter::Chain<A, B>where
A: Debug,
B: Debug,
impl<A, B> Debug for Zip<A, B>where
A: Debug,
B: Debug,
impl<B> Debug for Cow<'_, B>where
B: Debug + ToOwned + ?Sized,
<B as ToOwned>::Owned: Debug,
impl<B, C> Debug for ControlFlow<B, C>where
B: Debug,
C: Debug,
impl<B: Debug> Debug for sgx_tstd::io::Lines<B>
impl<B: Debug> Debug for sgx_tstd::io::Split<B>
impl<Dyn> Debug for DynMetadata<Dyn>where
Dyn: ?Sized,
impl<E> Debug for sgx_tstd::error::Report<E>where
Report<E>: Display,
impl<F> Debug for PollFn<F>
impl<F> Debug for FromFn<F>
impl<F> Debug for OnceWith<F>where
F: Debug,
impl<F> Debug for RepeatWith<F>where
F: Debug,
impl<F> Debug for CharPredicateSearcher<'_, F>where
F: FnMut(char) -> bool,
impl<H> Debug for BuildHasherDefault<H>
impl<I> Debug for FromIter<I>where
I: Debug,
impl<I> Debug for DecodeUtf16<I>where
I: Debug + Iterator<Item = u16>,
impl<I> Debug for Cloned<I>where
I: Debug,
impl<I> Debug for Copied<I>where
I: Debug,
impl<I> Debug for Cycle<I>where
I: Debug,
impl<I> Debug for Enumerate<I>where
I: Debug,
impl<I> Debug for Fuse<I>where
I: Debug,
impl<I> Debug for Intersperse<I>where
I: Debug + Iterator,
<I as Iterator>::Item: Clone + Debug,
impl<I> Debug for Peekable<I>where
I: Debug + Iterator,
<I as Iterator>::Item: Debug,
impl<I> Debug for Skip<I>where
I: Debug,
impl<I> Debug for StepBy<I>where
I: Debug,
impl<I> Debug for sgx_tstd::iter::Take<I>where
I: Debug,
impl<I, F> Debug for FilterMap<I, F>where
I: Debug,
impl<I, F> Debug for Inspect<I, F>where
I: Debug,
impl<I, F> Debug for Map<I, F>where
I: Debug,
impl<I, G> Debug for IntersperseWith<I, G>where
I: Iterator + Debug,
<I as Iterator>::Item: Debug,
G: Debug,
impl<I, P> Debug for Filter<I, P>where
I: Debug,
impl<I, P> Debug for MapWhile<I, P>where
I: Debug,
impl<I, P> Debug for SkipWhile<I, P>where
I: Debug,
impl<I, P> Debug for TakeWhile<I, P>where
I: Debug,
impl<I, St, F> Debug for Scan<I, St, F>where
I: Debug,
St: Debug,
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,
impl<I, U, F> Debug for FlatMap<I, U, F>where
I: Debug,
U: IntoIterator,
<U as IntoIterator>::IntoIter: Debug,
impl<I, const N: usize> Debug for sgx_tstd::iter::ArrayChunks<I, N>where
I: Debug + Iterator,
<I as Iterator>::Item: Debug,
impl<Idx> Debug for sgx_tstd::ops::Range<Idx>where
Idx: Debug,
impl<Idx> Debug for RangeFrom<Idx>where
Idx: Debug,
impl<Idx> Debug for RangeInclusive<Idx>where
Idx: Debug,
impl<Idx> Debug for RangeTo<Idx>where
Idx: Debug,
impl<Idx> Debug for RangeToInclusive<Idx>where
Idx: Debug,
impl<K> Debug for hashbrown_tstd::set::Iter<'_, K>where
K: Debug,
impl<K, A> Debug for hashbrown_tstd::set::Drain<'_, K, A>where
K: Debug,
A: Allocator + Clone,
impl<K, A> Debug for hashbrown_tstd::set::IntoIter<K, A>where
K: Debug,
A: Allocator + Clone,
impl<K, Q, V, S, A> Debug for EntryRef<'_, '_, K, Q, V, S, A>where
K: Borrow<Q>,
Q: Debug + ?Sized,
V: Debug,
A: Allocator + Clone,
impl<K, Q, V, S, A> Debug for OccupiedEntryRef<'_, '_, K, Q, V, S, A>where
K: Borrow<Q>,
Q: Debug + ?Sized,
V: Debug,
A: Allocator + Clone,
impl<K, Q, V, S, A> Debug for VacantEntryRef<'_, '_, K, Q, V, S, A>where
K: Borrow<Q>,
Q: Debug + ?Sized,
A: Allocator + Clone,
impl<K, V> Debug for hashbrown_tstd::map::Iter<'_, K, V>where
K: Debug,
V: Debug,
impl<K, V> Debug for hashbrown_tstd::map::IterMut<'_, K, V>where
K: Debug,
V: Debug,
impl<K, V> Debug for hashbrown_tstd::map::Keys<'_, K, V>where
K: Debug,
impl<K, V> Debug for hashbrown_tstd::map::Values<'_, K, V>where
V: Debug,
impl<K, V> Debug for hashbrown_tstd::map::ValuesMut<'_, K, V>where
K: Debug,
V: Debug,
impl<K, V> Debug for sgx_tstd::collections::btree_map::Iter<'_, K, V>where
K: Debug,
V: Debug,
impl<K, V> Debug for sgx_tstd::collections::btree_map::IterMut<'_, K, V>where
K: Debug,
V: Debug,
impl<K, V> Debug for sgx_tstd::collections::btree_map::Keys<'_, K, V>where
K: Debug,
impl<K, V> Debug for sgx_tstd::collections::btree_map::Range<'_, K, V>where
K: Debug,
V: Debug,
impl<K, V> Debug for RangeMut<'_, K, V>where
K: Debug,
V: Debug,
impl<K, V> Debug for sgx_tstd::collections::btree_map::Values<'_, K, V>where
V: Debug,
impl<K, V> Debug for sgx_tstd::collections::btree_map::ValuesMut<'_, K, V>where
V: Debug,
impl<K, V> Debug for sgx_tstd::collections::hash_map::Drain<'_, K, V>where
K: Debug,
V: Debug,
impl<K, V> Debug for sgx_tstd::collections::hash_map::IterMut<'_, K, V>where
K: Debug,
V: Debug,
impl<K, V, A> Debug for RustcEntry<'_, K, V, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for sgx_tstd::collections::btree_map::Entry<'_, K, V, A>where
K: Debug + Ord,
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for hashbrown_tstd::map::Drain<'_, K, V, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for hashbrown_tstd::map::IntoIter<K, V, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for hashbrown_tstd::map::IntoKeys<K, V, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for hashbrown_tstd::map::IntoValues<K, V, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for RustcOccupiedEntry<'_, K, V, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for RustcVacantEntry<'_, K, V, A>where
K: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for sgx_tstd::collections::btree_map::IntoIter<K, V, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for sgx_tstd::collections::btree_map::IntoKeys<K, V, A>where
K: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for sgx_tstd::collections::btree_map::IntoValues<K, V, A>where
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for sgx_tstd::collections::btree_map::OccupiedEntry<'_, K, V, A>where
K: Debug + Ord,
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for sgx_tstd::collections::btree_map::OccupiedError<'_, K, V, A>where
K: Debug + Ord,
V: Debug,
A: Allocator + Clone,
impl<K, V, A> Debug for sgx_tstd::collections::btree_map::VacantEntry<'_, K, V, A>where
K: Debug + Ord,
A: Allocator + Clone,
impl<K, V, A> Debug for BTreeMap<K, V, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, F> Debug for sgx_tstd::collections::btree_map::DrainFilter<'_, K, V, F, Global>where
K: Debug,
V: Debug,
F: FnMut(&K, &mut V) -> bool,
impl<K, V, S> Debug for sgx_tstd::collections::hash_map::HashMap<K, V, S>where
K: Debug,
V: Debug,
impl<K, V, S> Debug for sgx_tstd::collections::hash_map::RawEntryBuilder<'_, K, V, S>
impl<K, V, S> Debug for sgx_tstd::collections::hash_map::RawEntryBuilderMut<'_, K, V, S>
impl<K, V, S> Debug for sgx_tstd::collections::hash_map::RawVacantEntryMut<'_, K, V, S>
impl<K, V, S, A> Debug for hashbrown_tstd::map::Entry<'_, K, V, S, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, S, A> Debug for hashbrown_tstd::map::RawEntryMut<'_, K, V, S, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, S, A> Debug for hashbrown_tstd::map::HashMap<K, V, S, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, S, A> Debug for hashbrown_tstd::map::OccupiedEntry<'_, K, V, S, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, S, A> Debug for hashbrown_tstd::map::OccupiedError<'_, K, V, S, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, S, A> Debug for hashbrown_tstd::map::RawEntryBuilder<'_, K, V, S, A>where
A: Allocator + Clone,
impl<K, V, S, A> Debug for hashbrown_tstd::map::RawEntryBuilderMut<'_, K, V, S, A>where
A: Allocator + Clone,
impl<K, V, S, A> Debug for hashbrown_tstd::map::RawOccupiedEntryMut<'_, K, V, S, A>where
K: Debug,
V: Debug,
A: Allocator + Clone,
impl<K, V, S, A> Debug for hashbrown_tstd::map::RawVacantEntryMut<'_, K, V, S, A>where
A: Allocator + Clone,
impl<K, V, S, A> Debug for hashbrown_tstd::map::VacantEntry<'_, K, V, S, A>where
K: Debug,
A: Allocator + Clone,
impl<K, V: Debug> Debug for sgx_tstd::collections::hash_map::IntoValues<K, V>
impl<K, V: Debug> Debug for sgx_tstd::collections::hash_map::Values<'_, K, V>
impl<K, V: Debug> Debug for sgx_tstd::collections::hash_map::ValuesMut<'_, K, V>
impl<K: Debug> Debug for sgx_tstd::collections::hash_set::Drain<'_, K>
impl<K: Debug> Debug for sgx_tstd::collections::hash_set::IntoIter<K>
impl<K: Debug> Debug for sgx_tstd::collections::hash_set::Iter<'_, K>
impl<K: Debug, V> Debug for sgx_tstd::collections::hash_map::IntoKeys<K, V>
impl<K: Debug, V> Debug for sgx_tstd::collections::hash_map::Keys<'_, K, V>
impl<K: Debug, V> Debug for sgx_tstd::collections::hash_map::VacantEntry<'_, K, V>
impl<K: Debug, V: Debug> Debug for sgx_tstd::collections::hash_map::Entry<'_, K, V>
impl<K: Debug, V: Debug> Debug for sgx_tstd::collections::hash_map::IntoIter<K, V>
impl<K: Debug, V: Debug> Debug for sgx_tstd::collections::hash_map::Iter<'_, K, V>
impl<K: Debug, V: Debug> Debug for sgx_tstd::collections::hash_map::OccupiedEntry<'_, K, V>
impl<K: Debug, V: Debug> Debug for sgx_tstd::collections::hash_map::OccupiedError<'_, K, V>
impl<K: Debug, V: Debug, S> Debug for sgx_tstd::collections::hash_map::RawEntryMut<'_, K, V, S>
impl<K: Debug, V: Debug, S> Debug for sgx_tstd::collections::hash_map::RawOccupiedEntryMut<'_, K, V, S>
impl<P> Debug for Pin<P>where
P: Debug,
impl<R> Debug for BufReader<R>where
R: Debug,
impl<R: Debug> Debug for sgx_tstd::io::Bytes<R>
impl<Ret, T> Debug for fn (T₁, T₂, …, Tₙ) -> Ret
This trait is implemented for function pointers with up to twelve arguments.
impl<Ret, T> Debug for extern "C" fn (T₁, T₂, …, Tₙ) -> Ret
This trait is implemented for function pointers with up to twelve arguments.
impl<Ret, T> Debug for extern "C" fn (T₁, T₂, …, Tₙ, ...) -> Ret
This trait is implemented for function pointers with up to twelve arguments.
impl<Ret, T> Debug for extern "C-unwind" fn (T₁, T₂, …, Tₙ) -> Ret
This trait is implemented for function pointers with up to twelve arguments.
impl<Ret, T> Debug for extern "C-unwind" fn (T₁, T₂, …, Tₙ, ...) -> Ret
This trait is implemented for function pointers with up to twelve arguments.
impl<Ret, T> Debug for unsafe fn (T₁, T₂, …, Tₙ) -> Ret
This trait is implemented for function pointers with up to twelve arguments.
impl<Ret, T> Debug for unsafe extern "C" fn (T₁, T₂, …, Tₙ) -> Ret
This trait is implemented for function pointers with up to twelve arguments.
impl<Ret, T> Debug for unsafe extern "C" fn (T₁, T₂, …, Tₙ, ...) -> Ret
This trait is implemented for function pointers with up to twelve arguments.
impl<Ret, T> Debug for unsafe extern "C-unwind" fn (T₁, T₂, …, Tₙ) -> Ret
This trait is implemented for function pointers with up to twelve arguments.
impl<Ret, T> Debug for unsafe extern "C-unwind" fn (T₁, T₂, …, Tₙ, ...) -> Ret
This trait is implemented for function pointers with up to twelve arguments.
impl<T> Debug for Bound<T>where
T: Debug,
impl<T> Debug for Option<T>where
T: Debug,
impl<T> Debug for TryLockError<T>
impl<T> Debug for Poll<T>where
T: Debug,
impl<T> Debug for *const Twhere
T: ?Sized,
impl<T> Debug for *mut Twhere
T: ?Sized,
impl<T> Debug for &Twhere
T: Debug + ?Sized,
impl<T> Debug for &mut Twhere
T: Debug + ?Sized,
impl<T> Debug for [T]where
T: Debug,
impl<T> Debug for (T₁, T₂, …, Tₙ)where
T: Debug + ?Sized,
This trait is implemented for tuples up to twelve items long.