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 · Sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
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,
)");Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl Debug for !
impl Debug for ()
impl Debug for Abi
impl Debug for AddrParseError
impl Debug for core::mem::alignment::Alignment
impl Debug for core::fmt::Alignment
impl Debug for kernel::ptr::Alignment
impl Debug for core::alloc::AllocError
impl Debug for zerocopy::error::AllocError
impl Debug for kernel::alloc::AllocError
impl Debug for Arguments<'_>
impl Debug for Array
impl Debug for AsciiChar
impl Debug for Assume
impl Debug for core::sync::atomic::Atomic<bool>
target_has_atomic_load_store=8 only.impl Debug for core::sync::atomic::Atomic<i8>
impl Debug for core::sync::atomic::Atomic<i16>
impl Debug for core::sync::atomic::Atomic<i32>
impl Debug for core::sync::atomic::Atomic<i64>
impl Debug for core::sync::atomic::Atomic<isize>
impl Debug for core::sync::atomic::Atomic<u8>
impl Debug for core::sync::atomic::Atomic<u16>
impl Debug for core::sync::atomic::Atomic<u32>
impl Debug for core::sync::atomic::Atomic<u64>
impl Debug for core::sync::atomic::Atomic<usize>
impl Debug for AtomicOrdering
impl Debug for BStr
impl Debug for BadFdError
impl Debug for BecauseExclusive
impl Debug for BecauseImmutable
impl Debug for BigEndian
impl Debug for Bool
impl Debug for BorrowError
impl Debug for BorrowMutError
impl Debug for ByteStr
impl Debug for CStr
Shows the underlying bytes as a normal string, with invalid UTF-8 presented as hex escape sequences.
impl Debug for CString
impl Debug for Char
impl Debug for CharCase
impl Debug for CharTryFromError
impl Debug for Chars<'_>
impl Debug for Class
impl Debug for ClassMask
impl Debug for Const
impl Debug for Context<'_>
impl Debug for CpuId
impl Debug for CpuidResult
impl Debug for DataDirection
impl Debug for DebugAsHex
impl Debug for DecodeUtf16Error
impl Debug for Delta
impl Debug for DmaMask
impl Debug for Duration
impl Debug for DynTrait
impl Debug for DynTraitPredicate
impl Debug for core::io::util::Empty
impl Debug for EncodeUtf16<'_>
impl Debug for Enum
impl Debug for core::io::error::Error
impl Debug for kernel::fmt::Error
impl Debug for kernel::error::Error
impl Debug for ErrorKind
impl Debug for core::char::EscapeDebug
impl Debug for core::ascii::EscapeDefault
impl Debug for core::char::EscapeDefault
impl Debug for core::char::EscapeUnicode
impl Debug for Field
impl Debug for FieldId
impl Debug for Float
impl Debug for FnPtr
impl Debug for FormattingOptions
impl Debug for FpCategory
impl Debug for FromBytesUntilNulError
impl Debug for FromBytesWithNulError
impl Debug for FwNodeReferenceArgs
impl Debug for Generic
impl Debug for GenericType
impl Debug for GetDisjointMutError
impl Debug for GpuBuddyAllocMode
impl Debug for Hertz
impl Debug for HrTimerRestart
impl Debug for Infallible
impl Debug for InsertErrorKind
impl Debug for Int
impl Debug for IntErrorKind
impl Debug for IpAddr
impl Debug for Ipv4Addr
impl Debug for Ipv6Addr
impl Debug for Ipv6MulticastScope
impl Debug for IrqType
impl Debug for IrqTypes
impl Debug for Last
impl Debug for Layout
impl Debug for LayoutError
impl Debug for Lifetime
impl Debug for LittleEndian
impl Debug for LocalWaker
impl Debug for Locality
impl Debug for Location<'_>
impl Debug for MicroVolt
impl Debug for MicroWatt
impl Debug for core::cmp::Ordering
impl Debug for core::sync::atomic::Ordering
impl Debug for PanicMessage<'_>
impl Debug for ParseBoolError
impl Debug for ParseCharError
impl Debug for ParseIntError
impl Debug for PhantomContravariantLifetime<'_>
impl Debug for PhantomCovariantLifetime<'_>
impl Debug for PhantomInvariantLifetime<'_>
impl Debug for PhantomPinned
impl Debug for Pointer
impl Debug for RangeFull
impl Debug for RawWaker
impl Debug for RawWakerVTable
impl Debug for Reference
impl Debug for Relation
impl Debug for RemoveError
impl Debug for core::io::util::Repeat
impl Debug for SearchStep
impl Debug for SearchType
impl Debug for Sign
impl Debug for SimdAlign
impl Debug for Sink
impl Debug for SipHasher
impl Debug for Slice
impl Debug for SocketAddr
impl Debug for SocketAddrV4
impl Debug for SocketAddrV6
impl Debug for Str
impl Debug for Struct
impl Debug for TableIndex
impl Debug for ToCasefold
impl Debug for ToLowercase
impl Debug for ToTitlecase
impl Debug for ToUppercase
impl Debug for Trait
impl Debug for TryFromCharError
impl Debug for TryFromFloatSecsError
impl Debug for TryFromIntError
impl Debug for TryFromSliceError
impl Debug for Tuple
impl Debug for Type
impl Debug for TypeId
impl Debug for TypeKind
impl Debug for Union
impl Debug for Utf8Chunks<'_>
impl Debug for Utf8Error
impl Debug for VaList<'_>
impl Debug for Variant
impl Debug for Vendor
impl Debug for Waker
impl Debug for __compat_aio_sigset
impl Debug for __compat_aio_sigset
impl Debug for __key_reference_with_attributes
impl Debug for __key_reference_with_attributes
impl Debug for __m128
impl Debug for __m256
impl Debug for __m512
impl Debug for __m128bh
impl Debug for __m128d
impl Debug for __m128h
impl Debug for __m128i
impl Debug for __m256bh
impl Debug for __m256d
impl Debug for __m256h
impl Debug for __m256i
impl Debug for __m512bh
impl Debug for __m512d
impl Debug for __m512h
impl Debug for __m512i
impl Debug for __tile1024i
impl Debug for aa_label
impl Debug for aa_label
impl Debug for acpi_device
impl Debug for acpi_gpio_mapping
impl Debug for acpi_processor_power
impl Debug for acpi_prt_entry
impl Debug for anon_vma
impl Debug for anon_vma
impl Debug for anon_vma_chain
impl Debug for anon_vma_chain
impl Debug for arch_elf_state
impl Debug for arch_elf_state
impl Debug for assoc_array_edit
impl Debug for assoc_array_edit
impl Debug for audit_context
impl Debug for audit_context
impl Debug for audit_krule
impl Debug for audit_krule
impl Debug for audit_names
impl Debug for audit_names
impl Debug for badblocks
impl Debug for bf16
impl Debug for binfmt_misc
impl Debug for binfmt_misc
impl Debug for bio_crypt_ctx
impl Debug for bio_crypt_ctx
impl Debug for bio_integrity_payload
impl Debug for bio_integrity_payload
impl Debug for blk_crypto_profile
impl Debug for blk_flush_queue
impl Debug for blk_plug
impl Debug for blk_queue_stats
impl Debug for blk_report_zones_args
impl Debug for blk_stat_callback
impl Debug for blk_trace
impl Debug for blkcg_gq
impl Debug for bool
impl Debug for boot_params
impl Debug for boot_params
impl Debug for bpf_arena
impl Debug for bpf_arena
impl Debug for bpf_context
impl Debug for bpf_context
impl Debug for bpf_cpu_map_entry
impl Debug for bpf_cpu_map_entry
impl Debug for bpf_dtab_netdev
impl Debug for bpf_dtab_netdev
impl Debug for bpf_func_state
impl Debug for bpf_func_state
impl Debug for bpf_kfunc_desc_tab
impl Debug for bpf_kfunc_desc_tab
impl Debug for bpf_local_storage
impl Debug for bpf_local_storage
impl Debug for bpf_local_storage_map
impl Debug for bpf_local_storage_map
impl Debug for bpf_log_attr
impl Debug for bpf_log_attr
impl Debug for bpf_mem_alloc
impl Debug for bpf_mem_alloc
impl Debug for bpf_net_context
impl Debug for bpf_net_context
impl Debug for bpf_offload_dev
impl Debug for bpf_offload_dev
impl Debug for bpf_reg_state
impl Debug for bpf_reg_state
impl Debug for bpf_struct_ops_value
impl Debug for bpf_struct_ops_value
impl Debug for bpf_verifier_env
impl Debug for bpf_verifier_env
impl Debug for bpf_verifier_log
impl Debug for bpf_verifier_log
impl Debug for btf
impl Debug for btf
impl Debug for btf_show
impl Debug for btf_show
impl Debug for bucket_table
impl Debug for bucket_table
impl Debug for buffer_head
impl Debug for buffer_head
impl Debug for c_void
impl Debug for capture_control
impl Debug for capture_control
impl Debug for cfs_rq
impl Debug for cfs_rq
impl Debug for cgroup_taskset
impl Debug for cgroup_taskset
impl Debug for char
impl Debug for class_compat
impl Debug for class_compat
impl Debug for clk
impl Debug for clock_event_device
impl Debug for clock_event_device
impl Debug for codetag_module
impl Debug for codetag_module
impl Debug for codetag_type
impl Debug for codetag_type
impl Debug for compat_kexec_segment
impl Debug for compat_kexec_segment
impl Debug for compat_linux_dirent
impl Debug for compat_linux_dirent
impl Debug for compat_mq_attr
impl Debug for compat_mq_attr
impl Debug for compat_msgbuf
impl Debug for compat_msgbuf
impl Debug for compat_old_linux_dirent
impl Debug for compat_old_linux_dirent
impl Debug for compat_sel_arg_struct
impl Debug for compat_sel_arg_struct
impl Debug for compat_statfs64
impl Debug for compat_statfs64
impl Debug for compat_sysctl_args
impl Debug for compat_sysctl_args
impl Debug for compat_sysinfo
impl Debug for compat_sysinfo
impl Debug for completion_list
impl Debug for completion_list
impl Debug for console
impl Debug for console
impl Debug for coredump_params
impl Debug for coredump_params
impl Debug for cper_ia_proc_ctx
impl Debug for cpufreq_policy
impl Debug for delegated_inode
impl Debug for delegated_inode
impl Debug for dev_iommu
impl Debug for dev_pin_info
impl Debug for dev_pin_info
impl Debug for dev_pm_opp
impl Debug for device_node
impl Debug for device_private
impl Debug for disk_events
impl Debug for dma_pool
impl Debug for dma_resv_list
impl Debug for dmem_cgroup_region
impl Debug for driver_private
impl Debug for drm_atomic_commit
impl Debug for drm_crtc
impl Debug for drm_display_mode
impl Debug for drm_fb_helper
impl Debug for drm_fb_helper_surface_size
impl Debug for drm_master
impl Debug for drm_plane
impl Debug for drm_printer
impl Debug for drm_vblank_crtc
impl Debug for drm_vram_mm
impl Debug for dst_entry
impl Debug for dst_entry
impl Debug for dyn Any
impl Debug for dyn Any + Send
impl Debug for dyn Any + Sync + Send
impl Debug for elevator_queue
impl Debug for encoded_page
impl Debug for encoded_page
impl Debug for ep_device
impl Debug for epoll_event
impl Debug for eventfd_ctx
impl Debug for eventfd_ctx
impl Debug for export_operations
impl Debug for export_operations
impl Debug for f16
impl Debug for f32
impl Debug for f64
impl Debug for f128
impl Debug for fiemap_extent_info
impl Debug for fiemap_extent_info
impl Debug for file_kattr
impl Debug for file_kattr
impl Debug for file_lease
impl Debug for file_lease
impl Debug for file_lock
impl Debug for file_lock
impl Debug for flush_tlb_info
impl Debug for flush_tlb_info
impl Debug for folio_queue
impl Debug for folio_queue
impl Debug for fs_context
impl Debug for fs_context
impl Debug for fs_parameter
impl Debug for fs_parameter
impl Debug for fs_parameter_spec
impl Debug for fs_parameter_spec
impl Debug for fs_pin
impl Debug for fs_pin
impl Debug for fs_struct
impl Debug for fs_struct
impl Debug for fscrypt_operations
impl Debug for fscrypt_operations
impl Debug for fserror_event
impl Debug for fserror_event
impl Debug for fsnotify_mark_connector
impl Debug for fsnotify_mark_connector
impl Debug for fsnotify_sb_info
impl Debug for fsnotify_sb_info
impl Debug for fsverity_operations
impl Debug for fsverity_operations
impl Debug for ftrace_hash
impl Debug for ftrace_hash
impl Debug for ftrace_rec_iter
impl Debug for ftrace_rec_iter
impl Debug for futex_pi_state
impl Debug for futex_pi_state
impl Debug for futex_private_hash
impl Debug for futex_private_hash
impl Debug for ghcb
impl Debug for ghcb
impl Debug for gpio_desc
impl Debug for gpio_device
impl Debug for hd_geometry
impl Debug for i8
impl Debug for i16
impl Debug for i32
impl Debug for i64
impl Debug for i128
impl Debug for ib_device
impl Debug for ib_device
impl Debug for io_bitmap
impl Debug for io_bitmap
impl Debug for io_comp_batch
impl Debug for io_uring_cmd
impl Debug for io_uring_cmd
impl Debug for io_uring_task
impl Debug for io_uring_task
impl Debug for iomap_ops
impl Debug for iomap_ops
impl Debug for iommu_group
impl Debug for iommu_group
impl Debug for iommu_mm_data
impl Debug for iommufd_ctx
impl Debug for iommufd_viommu
impl Debug for iova_bitmap
impl Debug for ipc_namespace
impl Debug for ipc_namespace
impl Debug for irq_desc
impl Debug for irq_domain
impl Debug for irq_matrix
impl Debug for irq_routing_table
impl Debug for isize
impl Debug for kernfs_iattrs
impl Debug for kernfs_iattrs
impl Debug for kernfs_open_node
impl Debug for kernfs_open_node
impl Debug for key_owner
impl Debug for key_owner
impl Debug for key_type
impl Debug for key_type
impl Debug for keyring_list
impl Debug for keyring_list
impl Debug for keyring_name
impl Debug for keyring_name
impl Debug for kioctx_table
impl Debug for kioctx_table
impl Debug for kmem_cache
impl Debug for kmem_cache
impl Debug for kstatfs
impl Debug for kstatfs
impl Debug for kthread
impl Debug for kthread
impl Debug for kunit_suppressed_warning
impl Debug for linux_binprm
impl Debug for linux_binprm
impl Debug for linux_dirent64
impl Debug for linux_dirent64
impl Debug for lruvec_stats
impl Debug for lruvec_stats
impl Debug for lruvec_stats_percpu
impl Debug for lruvec_stats_percpu
impl Debug for macsec_context
impl Debug for macsec_ops
impl Debug for memcg1_events_percpu
impl Debug for memcg1_events_percpu
impl Debug for memcg_vmstats
impl Debug for memcg_vmstats
impl Debug for memcg_vmstats_percpu
impl Debug for memcg_vmstats_percpu
impl Debug for memory_block
impl Debug for memory_block
impl Debug for memory_group
impl Debug for memory_group
impl Debug for mempolicy
impl Debug for mempolicy
impl Debug for mfd_cell
impl Debug for mmu_gather
impl Debug for mmu_gather
impl Debug for mmu_notifier_subscriptions
impl Debug for mmu_notifier_subscriptions
impl Debug for mnt_idmap
impl Debug for mnt_idmap
impl Debug for mnt_namespace
impl Debug for mnt_namespace
impl Debug for mount
impl Debug for mount
impl Debug for msg_msg
impl Debug for msg_msg
impl Debug for msi_desc
impl Debug for msi_device_data
impl Debug for msi_device_data
impl Debug for msi_msg
impl Debug for msi_parent_ops
impl Debug for mtd_info
impl Debug for mtd_info
impl Debug for nameidata
impl Debug for nameidata
impl Debug for napi_struct
impl Debug for napi_struct
impl Debug for net
impl Debug for net
impl Debug for net_device
impl Debug for net_device
impl Debug for net_devmem_dmabuf_binding
impl Debug for net_devmem_dmabuf_binding
impl Debug for old_itimerval32
impl Debug for old_itimerval32
impl Debug for opp_table
impl Debug for page_ext
impl Debug for page_ext
impl Debug for page_vma_mapped_walk
impl Debug for page_vma_mapped_walk
impl Debug for pci_bus
impl Debug for pci_controller
impl Debug for pci_dev
impl Debug for pci_p2pdma
impl Debug for pci_saved_state
impl Debug for pci_sriov
impl Debug for pcie_bwctrl_data
impl Debug for pcie_link_state
impl Debug for perf_ctx_data
impl Debug for perf_ctx_data
impl Debug for perf_event
impl Debug for perf_event
impl Debug for perf_event_attr
impl Debug for perf_event_attr
impl Debug for perf_event_context
impl Debug for perf_event_context
impl Debug for phy_device
impl Debug for phy_plca_cfg
impl Debug for phy_plca_status
impl Debug for phy_port
impl Debug for phy_tdr_config
impl Debug for phylink
impl Debug for pi_desc
impl Debug for pi_desc
impl Debug for pidfs_attr
impl Debug for pidfs_attr
impl Debug for pinconf_ops
impl Debug for pinctrl_dev
impl Debug for pinmux_ops
impl Debug for pipe_inode_info
impl Debug for pipe_inode_info
impl Debug for pm_domain_data
impl Debug for pm_domain_data
impl Debug for poll_table_struct
impl Debug for pollfd
impl Debug for posix_acl
impl Debug for posix_acl
impl Debug for pr_ops
impl Debug for proc_dir_entry
impl Debug for proc_ns_operations
impl Debug for proc_ns_operations
impl Debug for proto_accept_arg
impl Debug for proto_accept_arg
impl Debug for queue_limits
impl Debug for rcec_ea
impl Debug for rcu_node
impl Debug for rcu_node
impl Debug for readahead_control
impl Debug for reclaim_state
impl Debug for regmap
impl Debug for regulator
impl Debug for regulator_dev
impl Debug for request_queue
impl Debug for request_sock
impl Debug for request_sock
impl Debug for reset_control
impl Debug for robust_list_head
impl Debug for robust_list_head
impl Debug for root_domain
impl Debug for root_domain
impl Debug for rq
impl Debug for rq
impl Debug for rq_flags
impl Debug for rq_flags
impl Debug for rq_qos
impl Debug for rseq
impl Debug for rseq
impl Debug for rt_mutex_waiter
impl Debug for rtc_device
impl Debug for rtc_device
impl Debug for sched_attr
impl Debug for sched_attr
impl Debug for sched_group
impl Debug for sched_group
impl Debug for sctp_association
impl Debug for sctp_association
impl Debug for scx_sched
impl Debug for scx_sched
impl Debug for sec_path
impl Debug for sec_path
impl Debug for seccomp_filter
impl Debug for seccomp_filter
impl Debug for sem_undo_list
impl Debug for sem_undo_list
impl Debug for seq_buf
impl Debug for seq_buf
impl Debug for sfp_bus
impl Debug for sfp_upstream_ops
impl Debug for sg_io_hdr
impl Debug for slab
impl Debug for slab
impl Debug for smack_known
impl Debug for smack_known
impl Debug for soc_device
impl Debug for sock
impl Debug for sock
impl Debug for str
impl Debug for string_stream
impl Debug for subsys_private
impl Debug for swap_cluster_info
impl Debug for swap_cluster_info
impl Debug for swap_info_struct
impl Debug for task_delay_info
impl Debug for task_delay_info
impl Debug for task_exec_state
impl Debug for task_exec_state
impl Debug for task_group
impl Debug for task_group
impl Debug for tick_device
impl Debug for tick_device
impl Debug for time_namespace
impl Debug for time_namespace
impl Debug for timespec
impl Debug for timespec
impl Debug for ts_config
impl Debug for ts_config
impl Debug for u8
impl Debug for u16
impl Debug for u32
impl Debug for u64
impl Debug for u128
impl Debug for unix_edge
impl Debug for unix_edge
impl Debug for unwind_stacktrace
impl Debug for unwind_stacktrace
impl Debug for uprobe
impl Debug for uprobe
impl Debug for uprobe_xol_ops
impl Debug for uprobe_xol_ops
impl Debug for urb
impl Debug for usb_dev_state
impl Debug for usb_tt
impl Debug for user_event_mm
impl Debug for user_event_mm
impl Debug for usize
impl Debug for utf8data
impl Debug for utf8data
impl Debug for utf8data_table
impl Debug for utf8data_table
impl Debug for uts_namespace
impl Debug for uts_namespace
impl Debug for vm86
impl Debug for vm86
impl Debug for vm_struct
impl Debug for vm_struct
impl Debug for vm_uffd_ops
impl Debug for vm_uffd_ops
impl Debug for vma_merge_struct
impl Debug for vma_merge_struct
impl Debug for wake_irq
impl Debug for wake_irq
impl Debug for warn_args
impl Debug for warn_args
impl Debug for watch
impl Debug for watch
impl Debug for watch_notification
impl Debug for watch_notification
impl Debug for workqueue_struct
impl Debug for workqueue_struct
impl Debug for x86_msi_ops
impl Debug for x86_msi_ops
impl Debug for xdp_frame
impl Debug for xdp_frame
impl Debug for xfrm_policy
impl Debug for xfrm_policy
impl Debug for xfrm_sec_ctx
impl Debug for xfrm_sec_ctx
impl Debug for xfrm_selector
impl Debug for xfrm_selector
impl Debug for xfrm_state
impl Debug for xfrm_state
impl Debug for xfrm_user_sec_ctx
impl Debug for xfrm_user_sec_ctx
impl Debug for xol_area
impl Debug for xol_area
impl<'a, 'b, const N: usize> Debug for CharArrayRefSearcher<'a, 'b, N>
impl<'a, 'b> Debug for CharSliceSearcher<'a, 'b>
impl<'a, 'b> Debug for StrSearcher<'a, 'b>
impl<'a, A> Debug for core::option::Iter<'a, A>where
A: Debug + 'a,
impl<'a, A> Debug for core::option::IterMut<'a, A>where
A: Debug + 'a,
impl<'a, I> Debug for ByRefSized<'a, I>where
I: Debug,
impl<'a, P> Debug for MatchIndices<'a, P>
impl<'a, P> Debug for Matches<'a, P>
impl<'a, P> Debug for RMatchIndices<'a, P>
impl<'a, P> Debug for RMatches<'a, P>
impl<'a, P> Debug for core::str::iter::RSplit<'a, P>
impl<'a, P> Debug for core::str::iter::RSplitN<'a, P>
impl<'a, P> Debug for RSplitTerminator<'a, P>
impl<'a, P> Debug for core::str::iter::Split<'a, P>
impl<'a, P> Debug for core::str::iter::SplitInclusive<'a, P>
impl<'a, P> Debug for core::str::iter::SplitN<'a, P>
impl<'a, P> Debug for SplitTerminator<'a, P>
impl<'a, T, I> Debug for Ptr<'a, T, I>where
T: 'a + ?Sized,
I: Invariants,
impl<'a, T, P> Debug for ChunkBy<'a, T, P>where
T: 'a + Debug,
impl<'a, T, P> Debug for ChunkByMut<'a, T, P>where
T: 'a + Debug,
impl<'a, T, const N: usize> Debug for ArrayWindows<'a, T, N>where
T: Debug + 'a,
impl<'a, T> Debug for Chunks<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for ChunksExact<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for ChunksExactMut<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for ChunksMut<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for core::result::Iter<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for core::result::IterMut<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for RChunks<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for RChunksExact<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for RChunksExactMut<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for RChunksMut<'a, T>where
T: Debug + 'a,
impl<'a, T> Debug for Windows<'a, T>where
T: Debug + 'a,
impl<'a, const N: usize> Debug for CharArraySearcher<'a, N>
impl<'a> Debug for core::ffi::c_str::Bytes<'a>
impl<'a> Debug for core::str::iter::Bytes<'a>
impl<'a> Debug for CharIndices<'a>
impl<'a> Debug for CharSearcher<'a>
impl<'a> Debug for ContextBuilder<'a>
impl<'a> Debug for EscapeAscii<'a>
impl<'a> Debug for core::str::iter::EscapeDebug<'a>
impl<'a> Debug for core::str::iter::EscapeDefault<'a>
impl<'a> Debug for core::str::iter::EscapeUnicode<'a>
impl<'a> Debug for IoSlice<'a>
impl<'a> Debug for IoSliceMut<'a>
impl<'a> Debug for Lines<'a>
impl<'a> Debug for LinesAny<'a>
impl<'a> Debug for PanicInfo<'a>
impl<'a> Debug for Request<'a>
impl<'a> Debug for Source<'a>
impl<'a> Debug for SplitAsciiWhitespace<'a>
impl<'a> Debug for SplitWhitespace<'a>
impl<'a> Debug for Utf8Chunk<'a>
impl<'a> Debug for Utf8Pattern<'a>
impl<A, B> Debug for core::iter::adapters::chain::Chain<A, B>
impl<A, B> Debug for Zip<A, B>
impl<A, S, V> Debug for ConvertError<A, S, V>
impl<A> Debug for core::option::IntoIter<A>where
A: Debug,
impl<A> Debug for OptionFlatten<A>where
A: Debug,
impl<A> Debug for RangeFromIter<A>where
A: Debug,
impl<A> Debug for RangeInclusiveIter<A>where
A: Debug,
impl<A> Debug for RangeIter<A>where
A: Debug,
impl<A> Debug for core::iter::sources::repeat::Repeat<A>where
A: Debug,
impl<A> Debug for RepeatN<A>where
A: Debug,
impl<B, C> Debug for ControlFlow<B, C>
impl<Dyn> Debug for DynMetadata<Dyn>where
Dyn: ?Sized,
impl<F> Debug for CharPredicateSearcher<'_, F>
impl<F> Debug for Fwhere
F: FnPtr,
impl<F> Debug for core::iter::sources::from_fn::FromFn<F>
impl<F> Debug for core::fmt::builders::FromFn<F>
impl<F> Debug for OnceWith<F>
impl<F> Debug for PollFn<F>
impl<F> Debug for RepeatWith<F>
impl<G> Debug for FromCoroutine<G>
impl<H> Debug for BuildHasherDefault<H>
impl<I, F, const N: usize> Debug for MapWindows<I, F, N>
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>
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>
impl<I, U, F> Debug for FlatMap<I, U, F>
impl<I, U> Debug for Flatten<I>
impl<I, const N: usize> Debug for ArrayChunks<I, N>
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 DecodeUtf16<I>
impl<I> Debug for Enumerate<I>where
I: Debug,
impl<I> Debug for FromIter<I>where
I: Debug,
impl<I> Debug for Fuse<I>where
I: Debug,
impl<I> Debug for Intersperse<I>
impl<I> Debug for Peekable<I>
impl<I> Debug for Skip<I>where
I: Debug,
impl<I> Debug for StepBy<I>where
I: Debug,
impl<I> Debug for core::iter::adapters::take::Take<I>where
I: Debug,
impl<Idx> Debug for Clamp<Idx>where
Idx: Debug,
impl<Idx> Debug for core::ops::range::Range<Idx>where
Idx: Debug,
impl<Idx> Debug for core::range::Range<Idx>where
Idx: Debug,
impl<Idx> Debug for core::ops::range::RangeFrom<Idx>where
Idx: Debug,
impl<Idx> Debug for core::range::RangeFrom<Idx>where
Idx: Debug,
impl<Idx> Debug for core::ops::range::RangeInclusive<Idx>where
Idx: Debug,
impl<Idx> Debug for core::range::RangeInclusive<Idx>where
Idx: Debug,
impl<Idx> Debug for RangeTo<Idx>where
Idx: Debug,
impl<Idx> Debug for core::ops::range::RangeToInclusive<Idx>where
Idx: Debug,
impl<Idx> Debug for core::range::RangeToInclusive<Idx>where
Idx: Debug,
impl<O> Debug for F32<O>where
O: ByteOrder,
no_fp_fmt_parse only.impl<O> Debug for F64<O>where
O: ByteOrder,
no_fp_fmt_parse only.impl<O> Debug for I16<O>where
O: ByteOrder,
impl<O> Debug for I32<O>where
O: ByteOrder,
impl<O> Debug for I64<O>where
O: ByteOrder,
impl<O> Debug for I128<O>where
O: ByteOrder,
impl<O> Debug for Isize<O>where
O: ByteOrder,
impl<O> Debug for U16<O>where
O: ByteOrder,
impl<O> Debug for U32<O>where
O: ByteOrder,
impl<O> Debug for U64<O>where
O: ByteOrder,
impl<O> Debug for U128<O>where
O: ByteOrder,
impl<O> Debug for Usize<O>where
O: ByteOrder,
impl<P> Debug for MaybeDangling<P>
impl<Ptr> Debug for Pin<Ptr>where
Ptr: Debug,
impl<Src, Dst> Debug for AlignmentError<Src, Dst>where
Dst: ?Sized,
impl<Src, Dst> Debug for SizeError<Src, Dst>where
Dst: ?Sized,
impl<Src, Dst> Debug for ValidityError<Src, Dst>where
Dst: TryFromBytes + ?Sized,
impl<Storage> Debug for __BindgenBitfieldUnit<Storage>where
Storage: Debug,
impl<Storage> Debug for __BindgenBitfieldUnit<Storage>where
Storage: Debug,
impl<T, A> Debug for Box<T, A>
impl<T, B> Debug for zerocopy::ref::def::Ref<B, T>
impl<T, E> Debug for Result<T, E>
impl<T, F> Debug for DropGuard<T, F>
impl<T, F> Debug for LazyCell<T, F>where
T: Debug,
impl<T, F> Debug for Successors<T, F>where
T: Debug,
impl<T, P> Debug for core::slice::iter::RSplit<'_, T, P>
impl<T, P> Debug for RSplitMut<'_, T, P>
impl<T, P> Debug for core::slice::iter::RSplitN<'_, T, P>
impl<T, P> Debug for RSplitNMut<'_, T, P>
impl<T, P> Debug for core::slice::iter::Split<'_, T, P>
impl<T, P> Debug for core::slice::iter::SplitInclusive<'_, T, P>
impl<T, P> Debug for SplitInclusiveMut<'_, T, P>
impl<T, P> Debug for SplitMut<'_, T, P>
impl<T, P> Debug for core::slice::iter::SplitN<'_, T, P>
impl<T, P> Debug for SplitNMut<'_, T, P>
impl<T, U> Debug for core::io::util::Chain<T, U>
impl<T, const N: usize> Debug for core::array::iter::IntoIter<T, N>where
T: Debug,
impl<T, const N: usize> Debug for Mask<T, N>where
T: MaskElement + Debug,
impl<T, const N: usize> Debug for Simd<T, N>where
T: SimdElement + Debug,
impl<T, const N: usize> Debug for [T; N]where
T: Debug,
impl<T, const VARIANT: u32, const FIELD: u32> Debug for FieldRepresentingType<T, VARIANT, FIELD>where
T: ?Sized,
impl<T: AtomicType + Debug> Debug for kernel::sync::atomic::Atomic<T>where
T::Repr: AtomicBasicOps,
impl<T: Debug + ?Sized> Debug for Arc<T>
impl<T: Debug + ?Sized> Debug for UniqueArc<T>
impl<T: Debug + Integer, const N: u32> Debug for Bounded<T, N>
impl<T: Debug, A: Allocator> Debug for Vec<T, A>
impl<T> Debug for &T
impl<T> Debug for &mut T
impl<T> Debug for (T₁, T₂, …, Tₙ)where
T: Debug,
This trait is implemented for tuples up to twelve items long.
impl<T> Debug for *const Twhere
T: ?Sized,
impl<T> Debug for *mut Twhere
T: ?Sized,
impl<T> Debug for AssertUnwindSafe<T>where
T: Debug,
impl<T> Debug for core::sync::atomic::Atomic<*mut T>
target_has_atomic_load_store=ptr only.