Trait libc::prelude::fmt::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.16.0 · source§

impl Debug for c_void

source§

impl Debug for DIR

source§

impl Debug for FILE

source§

impl Debug for fpos_t

source§

impl Debug for timezone

source§

impl Debug for fpos64_t

source§

impl Debug for tpacket_versions

1.28.0 · source§

impl Debug for libc::prelude::fmt::Alignment

source§

impl Debug for AsciiChar

1.0.0 · source§

impl Debug for core::cmp::Ordering

1.34.0 · source§

impl Debug for Infallible

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 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 termios2

source§

impl Debug for msqid_ds

source§

impl Debug for semid_ds

source§

impl Debug for sigset_t

source§

impl Debug for sysinfo

source§

impl Debug for statvfs

source§

impl Debug for _libc_fpstate

source§

impl Debug for _libc_fpxreg

source§

impl Debug for _libc_xmmreg

source§

impl Debug for clone_args

source§

impl Debug for flock64

source§

impl Debug for flock

source§

impl Debug for ipc_perm

source§

impl Debug for mcontext_t

source§

impl Debug for pthread_attr_t

source§

impl Debug for ptrace_rseq_configuration

source§

impl Debug for shmid_ds

source§

impl Debug for sigaction

source§

impl Debug for siginfo_t

source§

impl Debug for stack_t

source§

impl Debug for stat64

source§

impl Debug for stat

source§

impl Debug for statfs64

source§

impl Debug for statfs

source§

impl Debug for statvfs64

source§

impl Debug for ucontext_t

source§

impl Debug for user

source§

impl Debug for user_fpregs_struct

source§

impl Debug for user_regs_struct

source§

impl Debug for Elf32_Chdr

source§

impl Debug for Elf64_Chdr

source§

impl Debug for __c_anonymous_ptrace_syscall_info_entry

source§

impl Debug for __c_anonymous_ptrace_syscall_info_exit

source§

impl Debug for __c_anonymous_ptrace_syscall_info_seccomp

source§

impl Debug for __exit_status

source§

impl Debug for __timeval

source§

impl Debug for aiocb

source§

impl Debug for cmsghdr

source§

impl Debug for fanotify_event_info_error

source§

impl Debug for fanotify_event_info_pidfd

source§

impl Debug for glob64_t

source§

impl Debug for iocb

source§

impl Debug for mallinfo2

source§

impl Debug for mallinfo

source§

impl Debug for msghdr

source§

impl Debug for nl_mmap_hdr

source§

impl Debug for nl_mmap_req

source§

impl Debug for nl_pktinfo

source§

impl Debug for ntptimeval

source§

impl Debug for ptrace_peeksiginfo_args

source§

impl Debug for ptrace_syscall_info

source§

impl Debug for regex_t

source§

impl Debug for rtentry

source§

impl Debug for sem_t

source§

impl Debug for seminfo

source§

impl Debug for sockaddr_xdp

source§

impl Debug for tcp_info

source§

impl Debug for termios

source§

impl Debug for timex

source§

impl Debug for utmpx

source§

impl Debug for xdp_desc

source§

impl Debug for xdp_mmap_offsets

source§

impl Debug for xdp_mmap_offsets_v1

source§

impl Debug for xdp_options

source§

impl Debug for xdp_ring_offset

source§

impl Debug for xdp_ring_offset_v1

source§

impl Debug for xdp_statistics

source§

impl Debug for xdp_statistics_v1

source§

impl Debug for xdp_umem_reg

source§

impl Debug for xdp_umem_reg_v1

source§

impl Debug for Elf32_Ehdr

source§

impl Debug for Elf32_Phdr

source§

impl Debug for Elf32_Shdr

source§

impl Debug for Elf32_Sym

source§

impl Debug for Elf64_Ehdr

source§

impl Debug for Elf64_Phdr

source§

impl Debug for Elf64_Shdr

source§

impl Debug for Elf64_Sym

source§

impl Debug for __c_anonymous__kernel_fsid_t

source§

impl Debug for __c_anonymous_elf32_rel

source§

impl Debug for __c_anonymous_elf32_rela

source§

impl Debug for __c_anonymous_elf64_rel

source§

impl Debug for __c_anonymous_elf64_rela

source§

impl Debug for __c_anonymous_ifru_map

source§

impl Debug for __c_anonymous_sockaddr_can_j1939

source§

impl Debug for __c_anonymous_sockaddr_can_tp

source§

impl Debug for af_alg_iv

source§

impl Debug for arpd_request

source§

impl Debug for can_filter

source§

impl Debug for cpu_set_t

source§

impl Debug for dirent64

source§

impl Debug for dirent

source§

impl Debug for dl_phdr_info

source§

impl Debug for dqblk

source§

impl Debug for epoll_params

source§

impl Debug for fanotify_event_info_fid

source§

impl Debug for fanotify_event_info_header

source§

impl Debug for fanotify_event_metadata

source§

impl Debug for fanotify_response

source§

impl Debug for fanout_args

source§

impl Debug for ff_condition_effect

source§

impl Debug for ff_constant_effect

source§

impl Debug for ff_effect

source§

impl Debug for ff_envelope

source§

impl Debug for ff_periodic_effect

source§

impl Debug for ff_ramp_effect

source§

impl Debug for ff_replay

source§

impl Debug for ff_rumble_effect

source§

impl Debug for ff_trigger

source§

impl Debug for file_clone_range

source§

impl Debug for fsid_t

source§

impl Debug for genlmsghdr

source§

impl Debug for glob_t

source§

impl Debug for hwtstamp_config

source§

impl Debug for if_nameindex

source§

impl Debug for ifconf

source§

impl Debug for ifreq

source§

impl Debug for in6_ifreq

source§

impl Debug for in6_pktinfo

source§

impl Debug for inotify_event

source§

impl Debug for input_absinfo

source§

impl Debug for input_event

source§

impl Debug for input_id

source§

impl Debug for input_keymap_entry

source§

impl Debug for input_mask

source§

impl Debug for itimerspec

source§

impl Debug for iw_discarded

source§

impl Debug for iw_encode_ext

source§

impl Debug for iw_event

source§

impl Debug for iw_freq

source§

impl Debug for iw_michaelmicfailure

source§

impl Debug for iw_missed

source§

impl Debug for iw_mlme

source§

impl Debug for iw_param

source§

impl Debug for iw_pmkid_cand

source§

impl Debug for iw_pmksa

source§

impl Debug for iw_point

source§

impl Debug for iw_priv_args

source§

impl Debug for iw_quality

source§

impl Debug for iw_range

source§

impl Debug for iw_scan_req

source§

impl Debug for iw_statistics

source§

impl Debug for iw_thrspy

source§

impl Debug for iwreq

source§

impl Debug for j1939_filter

source§

impl Debug for mntent

source§

impl Debug for mount_attr

source§

impl Debug for mq_attr

source§

impl Debug for msginfo

source§

impl Debug for nlattr

source§

impl Debug for nlmsgerr

source§

impl Debug for nlmsghdr

source§

impl Debug for open_how

source§

impl Debug for option

source§

impl Debug for packet_mreq

source§

impl Debug for passwd

source§

impl Debug for posix_spawn_file_actions_t

source§

impl Debug for posix_spawnattr_t

source§

impl Debug for pthread_barrier_t

source§

impl Debug for pthread_barrierattr_t

source§

impl Debug for pthread_cond_t

source§

impl Debug for pthread_condattr_t

source§

impl Debug for pthread_mutex_t

source§

impl Debug for pthread_mutexattr_t

source§

impl Debug for pthread_rwlock_t

source§

impl Debug for pthread_rwlockattr_t

source§

impl Debug for ptp_clock_caps

source§

impl Debug for ptp_clock_time

source§

impl Debug for ptp_extts_event

source§

impl Debug for ptp_extts_request

source§

impl Debug for ptp_pin_desc

source§

impl Debug for ptp_sys_offset

source§

impl Debug for ptp_sys_offset_extended

source§

impl Debug for ptp_sys_offset_precise

source§

impl Debug for regmatch_t

source§

impl Debug for rlimit64

source§

impl Debug for sched_attr

source§

impl Debug for sctp_authinfo

source§

impl Debug for sctp_initmsg

source§

impl Debug for sctp_nxtinfo

source§

impl Debug for sctp_prinfo

source§

impl Debug for sctp_rcvinfo

source§

impl Debug for sctp_sndinfo

source§

impl Debug for sctp_sndrcvinfo

source§

impl Debug for seccomp_data

source§

impl Debug for seccomp_notif

source§

impl Debug for seccomp_notif_addfd

source§

impl Debug for seccomp_notif_resp

source§

impl Debug for seccomp_notif_sizes

source§

impl Debug for sembuf

source§

impl Debug for signalfd_siginfo

source§

impl Debug for sock_extended_err

source§

impl Debug for sock_filter

source§

impl Debug for sock_fprog

source§

impl Debug for sockaddr_alg

source§

impl Debug for sockaddr_nl

source§

impl Debug for sockaddr_pkt

source§

impl Debug for sockaddr_vm

source§

impl Debug for spwd

source§

impl Debug for tls12_crypto_info_aes_gcm_128

source§

impl Debug for tls12_crypto_info_aes_gcm_256

source§

impl Debug for tls12_crypto_info_chacha20_poly1305

source§

impl Debug for tls_crypto_info

source§

impl Debug for tpacket2_hdr

source§

impl Debug for tpacket3_hdr

source§

impl Debug for tpacket_auxdata

source§

impl Debug for tpacket_bd_ts

source§

impl Debug for tpacket_hdr

source§

impl Debug for tpacket_hdr_v1

source§

impl Debug for tpacket_hdr_variant1

source§

impl Debug for tpacket_req3

source§

impl Debug for tpacket_req

source§

impl Debug for tpacket_rollover_stats

source§

impl Debug for tpacket_stats

source§

impl Debug for tpacket_stats_v3

source§

impl Debug for ucred

source§

impl Debug for uinput_abs_setup

source§

impl Debug for uinput_ff_erase

source§

impl Debug for uinput_ff_upload

source§

impl Debug for uinput_setup

source§

impl Debug for uinput_user_dev

source§

impl Debug for xsk_tx_metadata_completion

source§

impl Debug for xsk_tx_metadata_request

source§

impl Debug for Dl_info

source§

impl Debug for addrinfo

source§

impl Debug for arphdr

source§

impl Debug for arpreq

source§

impl Debug for arpreq_old

source§

impl Debug for epoll_event

source§

impl Debug for fd_set

source§

impl Debug for ifaddrs

source§

impl Debug for in6_rtmsg

source§

impl Debug for in_addr

source§

impl Debug for in_pktinfo

source§

impl Debug for ip_mreq

source§

impl Debug for ip_mreq_source

source§

impl Debug for ip_mreqn

source§

impl Debug for lconv

source§

impl Debug for mmsghdr

source§

impl Debug for sched_param

source§

impl Debug for sigevent

source§

impl Debug for sockaddr

source§

impl Debug for sockaddr_in6

source§

impl Debug for sockaddr_in

source§

impl Debug for sockaddr_ll

source§

impl Debug for sockaddr_storage

source§

impl Debug for sockaddr_un

source§

impl Debug for statx

source§

impl Debug for statx_timestamp

source§

impl Debug for tm

source§

impl Debug for utsname

source§

impl Debug for group

source§

impl Debug for hostent

source§

impl Debug for in6_addr

source§

impl Debug for iovec

source§

impl Debug for ipv6_mreq

source§

impl Debug for itimerval

source§

impl Debug for linger

source§

impl Debug for pollfd

source§

impl Debug for protoent

source§

impl Debug for rlimit

source§

impl Debug for rusage

source§

impl Debug for servent

source§

impl Debug for sigval

source§

impl Debug for timespec

source§

impl Debug for timeval

source§

impl Debug for tms

source§

impl Debug for utimbuf

source§

impl Debug for winsize

1.0.0 · source§

impl Debug for SipHasher

source§

impl Debug for Assume

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 BorrowedBuf<'_>

1.33.0 · source§

impl Debug for PhantomPinned

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

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.81.0 · source§

impl Debug for PanicMessage<'_>

source§

impl Debug for core::ptr::alignment::Alignment

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 Error

source§

impl Debug for __c_anonymous_ptrace_syscall_info_data

source§

impl Debug for __c_anonymous_ifc_ifcu

source§

impl Debug for __c_anonymous_ifr_ifru

source§

impl Debug for __c_anonymous_iwreq

source§

impl Debug for __c_anonymous_ptp_perout_request_1

source§

impl Debug for __c_anonymous_ptp_perout_request_2

source§

impl Debug for __c_anonymous_sockaddr_can_can_addr

source§

impl Debug for __c_anonymous_xsk_tx_metadata_union

source§

impl Debug for iwreq_data

source§

impl Debug for tpacket_bd_header_u

source§

impl Debug for tpacket_req_u

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 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, I> Debug for ByRefSized<'a, I>
where I: 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.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.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<'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.55.0 · source§

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

source§

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

1.34.0 · source§

impl<F> Debug for libc::prelude::iter::FromFn<F>

1.68.0 · source§

impl<F> Debug for OnceWith<F>

1.68.0 · source§

impl<F> Debug for RepeatWith<F>

1.64.0 · source§

impl<F> Debug for PollFn<F>

source§

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

source§

impl<F> Debug for libc::prelude::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>

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> Debug for FromIter<I>
where I: Debug,

1.9.0 · source§

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

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 libc::prelude::iter::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,

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.9.0 · source§

impl<T> Debug for Empty<T>

1.2.0 · source§

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

1.0.0 · source§

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

1.21.0 · source§

impl<T> Debug for Discriminant<T>

1.20.0 · source§

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

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 PhantomData<T>
where T: ?Sized,

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.25.0 · source§

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

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>

1.0.0 · source§

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

1.34.0 · source§

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

1.80.0 · source§

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

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>

source§

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

source§

impl<const N: usize> Debug for GetManyMutError<N>