pub trait Clone: Sized {
// Required method
fn clone(&self) -> Self;
// Provided method
fn clone_from(&mut self, source: &Self) { ... }
}
Expand description
A common trait for the ability to explicitly duplicate an object.
Differs from Copy
in that Copy
is implicit and an inexpensive bit-wise copy, while
Clone
is always explicit and may or may not be expensive. In order to enforce
these characteristics, Rust does not allow you to reimplement Copy
, but you
may reimplement Clone
and run arbitrary code.
Since Clone
is more general than Copy
, you can automatically make anything
Copy
be Clone
as well.
§Derivable
This trait can be used with #[derive]
if all fields are Clone
. The derive
d
implementation of Clone
calls clone
on each field.
For a generic struct, #[derive]
implements Clone
conditionally by adding bound Clone
on
generic parameters.
// `derive` implements Clone for Reading<T> when T is Clone.
#[derive(Clone)]
struct Reading<T> {
frequency: T,
}
§How can I implement Clone
?
Types that are Copy
should have a trivial implementation of Clone
. More formally:
if T: Copy
, x: T
, and y: &T
, then let x = y.clone();
is equivalent to let x = *y;
.
Manual implementations should be careful to uphold this invariant; however, unsafe code
must not rely on it to ensure memory safety.
An example is a generic struct holding a function pointer. In this case, the
implementation of Clone
cannot be derive
d, but can be implemented as:
struct Generate<T>(fn() -> T);
impl<T> Copy for Generate<T> {}
impl<T> Clone for Generate<T> {
fn clone(&self) -> Self {
*self
}
}
If we derive
:
#[derive(Copy, Clone)]
struct Generate<T>(fn() -> T);
the auto-derived implementations will have unnecessary T: Copy
and T: Clone
bounds:
// Automatically derived
impl<T: Copy> Copy for Generate<T> { }
// Automatically derived
impl<T: Clone> Clone for Generate<T> {
fn clone(&self) -> Generate<T> {
Generate(Clone::clone(&self.0))
}
}
The bounds are unnecessary because clearly the function itself should be copy- and cloneable even if its return type is not:
#[derive(Copy, Clone)]
struct Generate<T>(fn() -> T);
struct NotCloneable;
fn generate_not_cloneable() -> NotCloneable {
NotCloneable
}
Generate(generate_not_cloneable).clone(); // error: trait bounds were not satisfied
// Note: With the manual implementations the above line will compile.
§Additional implementors
In addition to the implementors listed below,
the following types also implement Clone
:
- Function item types (i.e., the distinct types defined for each function)
- Function pointer types (e.g.,
fn() -> i32
) - Closure types, if they capture no value from the environment
or if all such captured values implement
Clone
themselves. Note that variables captured by shared reference always implementClone
(even if the referent doesn’t), while variables captured by mutable reference never implementClone
.
Required Methods§
Provided Methods§
1.0.0 · Sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
.
a.clone_from(&b)
is equivalent to a = b.clone()
in functionality,
but can be overridden to reuse the resources of a
to avoid unnecessary
allocations.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl Clone for AsciiChar
impl Clone for origin_studio::cmp::Ordering
impl Clone for TryReserveErrorKind
impl Clone for Infallible
impl Clone for VarError
impl Clone for origin_studio::fmt::Alignment
impl Clone for DebugAsHex
impl Clone for Sign
impl Clone for origin_studio::io::SeekFrom
impl Clone for IpAddr
impl Clone for Ipv6MulticastScope
impl Clone for SocketAddr
impl Clone for FpCategory
impl Clone for IntErrorKind
impl Clone for GetDisjointMutError
impl Clone for SearchStep
impl Clone for origin_studio::sync::atomic::Ordering
impl Clone for FromBytesWithNulError
impl Clone for DwarfFileType
impl Clone for Format
impl Clone for SectionId
impl Clone for Vendor
impl Clone for RunTimeEndian
impl Clone for Pointer
impl Clone for gimli::read::Error
impl Clone for IndexSectionId
impl Clone for Value
impl Clone for ValueType
impl Clone for tpacket_versions
impl Clone for fsconfig_command
impl Clone for membarrier_cmd
impl Clone for membarrier_cmd_flag
impl Clone for procmap_query_flags
impl Clone for rustix::backend::fs::types::Advice
impl Clone for FileType
impl Clone for FlockOperation
impl Clone for rustix::backend::mm::types::Advice
impl Clone for Resource
impl Clone for MembarrierCommand
impl Clone for TimerfdClockId
impl Clone for ClockId
impl Clone for rustix::fs::seek_from::SeekFrom
impl Clone for Direction
impl Clone for DumpableBehavior
impl Clone for EndianMode
impl Clone for FloatingPointMode
impl Clone for MachineCheckMemoryCorruptionKillPolicy
impl Clone for PTracer
impl Clone for SpeculationFeature
impl Clone for TimeStampCounterReadability
impl Clone for TimingMethod
impl Clone for VirtualMemoryMapAddress
impl Clone for FlockOffsetType
impl Clone for FlockType
impl Clone for NanosleepRelativeResult
impl Clone for WakeOp
impl Clone for WakeOpCmp
impl Clone for Capability
impl Clone for CoreSchedulingScope
impl Clone for SecureComputingMode
impl Clone for SysCallUserDispatchFastSwitch
impl Clone for LinkNameSpaceType
impl Clone for bool
impl Clone for char
impl Clone for f16
impl Clone for f32
impl Clone for f64
impl Clone for f128
impl Clone for i8
impl Clone for i16
impl Clone for i32
impl Clone for i64
impl Clone for i128
impl Clone for isize
impl Clone for !
impl Clone for u8
impl Clone for u16
impl Clone for u32
impl Clone for u64
impl Clone for u128
impl Clone for usize
impl Clone for AllocError
impl Clone for Global
impl Clone for Layout
impl Clone for LayoutError
impl Clone for TypeId
impl Clone for CpuidResult
impl Clone for __m128
impl Clone for __m128bh
impl Clone for __m128d
impl Clone for __m128h
impl Clone for __m128i
impl Clone for __m256
impl Clone for __m256bh
impl Clone for __m256d
impl Clone for __m256h
impl Clone for __m256i
impl Clone for __m512
impl Clone for __m512bh
impl Clone for __m512d
impl Clone for __m512h
impl Clone for __m512i
impl Clone for bf16
impl Clone for TryFromSliceError
impl Clone for origin_studio::ascii::EscapeDefault
impl Clone for Box<str>
impl Clone for Box<ByteStr>
impl Clone for Box<CStr>
impl Clone for CharTryFromError
impl Clone for DecodeUtf16Error
impl Clone for origin_studio::char::EscapeDebug
impl Clone for origin_studio::char::EscapeDefault
impl Clone for origin_studio::char::EscapeUnicode
impl Clone for ParseCharError
impl Clone for ToLowercase
impl Clone for ToUppercase
impl Clone for TryFromCharError
impl Clone for UnorderedKeyError
impl Clone for TryReserveError
impl Clone for CString
impl Clone for FromVecWithNulError
impl Clone for IntoStringError
impl Clone for NulError
impl Clone for origin_studio::fmt::Error
impl Clone for FormattingOptions
impl Clone for SipHasher
impl Clone for PhantomPinned
impl Clone for Assume
impl Clone for AddrParseError
impl Clone for Ipv4Addr
impl Clone for Ipv6Addr
impl Clone for SocketAddrV4
impl Clone for SocketAddrV6
impl Clone for ParseFloatError
impl Clone for ParseIntError
impl Clone for TryFromIntError
impl Clone for RangeFull
impl Clone for origin_studio::ptr::Alignment
impl Clone for ParseBoolError
impl Clone for Utf8Error
impl Clone for FromUtf8Error
impl Clone for IntoChars
impl Clone for String
impl Clone for Duration
impl Clone for TryFromFloatSecsError
impl Clone for ByteString
impl Clone for FromBytesUntilNulError
impl Clone for LocalWaker
impl Clone for RawWakerVTable
impl Clone for Waker
impl Clone for AArch64
impl Clone for Arm
impl Clone for LoongArch
impl Clone for MIPS
impl Clone for PowerPc64
impl Clone for RiscV
impl Clone for X86
impl Clone for X86_64
impl Clone for DebugTypeSignature
impl Clone for DwoId
impl Clone for Encoding
impl Clone for LineEncoding
impl Clone for Register
impl Clone for DwAccess
impl Clone for DwAddr
impl Clone for DwAt
impl Clone for DwAte
impl Clone for DwCc
impl Clone for DwCfa
impl Clone for DwChildren
impl Clone for DwDefaulted
impl Clone for DwDs
impl Clone for DwDsc
impl Clone for DwEhPe
impl Clone for DwEnd
impl Clone for DwForm
impl Clone for DwId
impl Clone for DwIdx
impl Clone for DwInl
impl Clone for DwLang
impl Clone for DwLle
impl Clone for DwLnct
impl Clone for DwLne
impl Clone for DwLns
impl Clone for DwMacro
impl Clone for DwOp
impl Clone for DwOrd
impl Clone for DwRle
impl Clone for DwSect
impl Clone for DwSectV2
impl Clone for DwTag
impl Clone for DwUt
impl Clone for DwVirtuality
impl Clone for DwVis
impl Clone for BigEndian
impl Clone for LittleEndian
impl Clone for ArangeEntry
impl Clone for Augmentation
impl Clone for BaseAddresses
impl Clone for SectionBaseAddresses
impl Clone for UnitIndexSection
impl Clone for ReaderOffsetId
impl Clone for gimli::read::rnglists::Range
impl Clone for StoreOnHeap
impl Clone for libc::unix::linux_like::linux::arch::generic::termios2
impl Clone for pthread_attr_t
impl Clone for semid_ds
impl Clone for sigset_t
impl Clone for libc::unix::linux_like::linux::gnu::b32::stat
impl Clone for statvfs
impl Clone for sysinfo
impl Clone for _libc_fpreg
impl Clone for _libc_fpstate
impl Clone for libc::unix::linux_like::linux::gnu::b32::x86::flock64
impl Clone for libc::unix::linux_like::linux::gnu::b32::x86::flock
impl Clone for ipc_perm
impl Clone for max_align_t
impl Clone for mcontext_t
impl Clone for msqid_ds
impl Clone for shmid_ds
impl Clone for libc::unix::linux_like::linux::gnu::b32::x86::sigaction
impl Clone for siginfo_t
impl Clone for stack_t
impl Clone for libc::unix::linux_like::linux::gnu::b32::x86::stat64
impl Clone for libc::unix::linux_like::linux::gnu::b32::x86::statfs64
impl Clone for libc::unix::linux_like::linux::gnu::b32::x86::statfs
impl Clone for statvfs64
impl Clone for ucontext_t
impl Clone for user
impl Clone for user_fpregs_struct
impl Clone for user_fpxregs_struct
impl Clone for user_regs_struct
impl Clone for Elf32_Chdr
impl Clone for Elf64_Chdr
impl Clone for __c_anonymous_ptrace_syscall_info_entry
impl Clone for __c_anonymous_ptrace_syscall_info_exit
impl Clone for __c_anonymous_ptrace_syscall_info_seccomp
impl Clone for __exit_status
impl Clone for __timeval
impl Clone for aiocb
impl Clone for cmsghdr
impl Clone for fanotify_event_info_error
impl Clone for fanotify_event_info_pidfd
impl Clone for glob64_t
impl Clone for iocb
impl Clone for mallinfo2
impl Clone for mallinfo
impl Clone for msghdr
impl Clone for nl_mmap_hdr
impl Clone for nl_mmap_req
impl Clone for nl_pktinfo
impl Clone for ntptimeval
impl Clone for ptrace_peeksiginfo_args
impl Clone for ptrace_syscall_info
impl Clone for regex_t
impl Clone for rtentry
impl Clone for sem_t
impl Clone for seminfo
impl Clone for sockaddr_xdp
impl Clone for tcp_info
impl Clone for libc::unix::linux_like::linux::gnu::termios
impl Clone for timex
impl Clone for utmpx
impl Clone for xdp_desc
impl Clone for xdp_mmap_offsets
impl Clone for xdp_mmap_offsets_v1
impl Clone for xdp_options
impl Clone for xdp_ring_offset
impl Clone for xdp_ring_offset_v1
impl Clone for xdp_statistics
impl Clone for xdp_statistics_v1
impl Clone for xdp_umem_reg
impl Clone for xdp_umem_reg_v1
impl Clone for Elf32_Ehdr
impl Clone for Elf32_Phdr
impl Clone for Elf32_Shdr
impl Clone for Elf32_Sym
impl Clone for Elf64_Ehdr
impl Clone for Elf64_Phdr
impl Clone for Elf64_Shdr
impl Clone for Elf64_Sym
impl Clone for __c_anonymous__kernel_fsid_t
impl Clone for __c_anonymous_elf32_rel
impl Clone for __c_anonymous_elf32_rela
impl Clone for __c_anonymous_elf64_rel
impl Clone for __c_anonymous_elf64_rela
impl Clone for __c_anonymous_ifru_map
impl Clone for __c_anonymous_sockaddr_can_j1939
impl Clone for __c_anonymous_sockaddr_can_tp
impl Clone for af_alg_iv
impl Clone for arpd_request
impl Clone for can_filter
impl Clone for can_frame
impl Clone for canfd_frame
impl Clone for canxl_frame
impl Clone for cpu_set_t
impl Clone for dirent64
impl Clone for dirent
impl Clone for dl_phdr_info
impl Clone for dqblk
impl Clone for libc::unix::linux_like::linux::epoll_params
impl Clone for fanotify_event_info_fid
impl Clone for fanotify_event_info_header
impl Clone for fanotify_event_metadata
impl Clone for fanotify_response
impl Clone for fanout_args
impl Clone for ff_condition_effect
impl Clone for ff_constant_effect
impl Clone for ff_effect
impl Clone for ff_envelope
impl Clone for ff_periodic_effect
impl Clone for ff_ramp_effect
impl Clone for ff_replay
impl Clone for ff_rumble_effect
impl Clone for ff_trigger
impl Clone for libc::unix::linux_like::linux::file_clone_range
impl Clone for fsid_t
impl Clone for genlmsghdr
impl Clone for glob_t
impl Clone for hwtstamp_config
impl Clone for if_nameindex
impl Clone for ifconf
impl Clone for ifreq
impl Clone for in6_ifreq
impl Clone for in6_pktinfo
impl Clone for inotify_event
impl Clone for input_absinfo
impl Clone for input_event
impl Clone for input_id
impl Clone for input_keymap_entry
impl Clone for input_mask
impl Clone for libc::unix::linux_like::linux::itimerspec
impl Clone for iw_discarded
impl Clone for iw_encode_ext
impl Clone for iw_event
impl Clone for iw_freq
impl Clone for iw_michaelmicfailure
impl Clone for iw_missed
impl Clone for iw_mlme
impl Clone for iw_param
impl Clone for iw_pmkid_cand
impl Clone for iw_pmksa
impl Clone for iw_point
impl Clone for iw_priv_args
impl Clone for iw_quality
impl Clone for iw_range
impl Clone for iw_scan_req
impl Clone for iw_statistics
impl Clone for iw_thrspy
impl Clone for iwreq
impl Clone for j1939_filter
impl Clone for mntent
impl Clone for libc::unix::linux_like::linux::mount_attr
impl Clone for mq_attr
impl Clone for msginfo
impl Clone for nlattr
impl Clone for nlmsgerr
impl Clone for nlmsghdr
impl Clone for libc::unix::linux_like::linux::open_how
impl Clone for option
impl Clone for packet_mreq
impl Clone for passwd
impl Clone for posix_spawn_file_actions_t
impl Clone for posix_spawnattr_t
impl Clone for pthread_barrier_t
impl Clone for pthread_barrierattr_t
impl Clone for pthread_cond_t
impl Clone for pthread_condattr_t
impl Clone for pthread_mutex_t
impl Clone for pthread_mutexattr_t
impl Clone for pthread_rwlock_t
impl Clone for pthread_rwlockattr_t
impl Clone for ptp_clock_caps
impl Clone for ptp_clock_time
impl Clone for ptp_extts_event
impl Clone for ptp_extts_request
impl Clone for ptp_perout_request
impl Clone for ptp_pin_desc
impl Clone for ptp_sys_offset
impl Clone for ptp_sys_offset_extended
impl Clone for ptp_sys_offset_precise
impl Clone for regmatch_t
impl Clone for libc::unix::linux_like::linux::rlimit64
impl Clone for sched_attr
impl Clone for sctp_authinfo
impl Clone for sctp_initmsg
impl Clone for sctp_nxtinfo
impl Clone for sctp_prinfo
impl Clone for sctp_rcvinfo
impl Clone for sctp_sndinfo
impl Clone for sctp_sndrcvinfo
impl Clone for seccomp_data
impl Clone for seccomp_notif
impl Clone for seccomp_notif_addfd
impl Clone for seccomp_notif_resp
impl Clone for seccomp_notif_sizes
impl Clone for sembuf
impl Clone for signalfd_siginfo
impl Clone for sock_extended_err
impl Clone for sock_filter
impl Clone for sock_fprog
impl Clone for sock_txtime
impl Clone for sockaddr_alg
impl Clone for sockaddr_can
impl Clone for sockaddr_nl
impl Clone for sockaddr_pkt
impl Clone for sockaddr_vm
impl Clone for spwd
impl Clone for tls12_crypto_info_aes_gcm_128
impl Clone for tls12_crypto_info_aes_gcm_256
impl Clone for tls12_crypto_info_chacha20_poly1305
impl Clone for tls_crypto_info
impl Clone for tpacket2_hdr
impl Clone for tpacket3_hdr
impl Clone for tpacket_auxdata
impl Clone for tpacket_bd_ts
impl Clone for tpacket_block_desc
impl Clone for tpacket_hdr
impl Clone for tpacket_hdr_v1
impl Clone for tpacket_hdr_variant1
impl Clone for tpacket_req3
impl Clone for tpacket_req
impl Clone for tpacket_rollover_stats
impl Clone for tpacket_stats
impl Clone for tpacket_stats_v3
impl Clone for ucred
impl Clone for uinput_abs_setup
impl Clone for uinput_ff_erase
impl Clone for uinput_ff_upload
impl Clone for uinput_setup
impl Clone for uinput_user_dev
impl Clone for xsk_tx_metadata
impl Clone for xsk_tx_metadata_completion
impl Clone for xsk_tx_metadata_request
impl Clone for Dl_info
impl Clone for addrinfo
impl Clone for arphdr
impl Clone for arpreq
impl Clone for arpreq_old
impl Clone for libc::unix::linux_like::epoll_event
impl Clone for fd_set
impl Clone for ifaddrs
impl Clone for in6_rtmsg
impl Clone for in_addr
impl Clone for in_pktinfo
impl Clone for ip_mreq
impl Clone for ip_mreq_source
impl Clone for ip_mreqn
impl Clone for lconv
impl Clone for mmsghdr
impl Clone for sched_param
impl Clone for libc::unix::linux_like::sigevent
impl Clone for sockaddr
impl Clone for sockaddr_in6
impl Clone for sockaddr_in
impl Clone for sockaddr_ll
impl Clone for sockaddr_storage
impl Clone for sockaddr_un
impl Clone for libc::unix::linux_like::statx
impl Clone for libc::unix::linux_like::statx_timestamp
impl Clone for tm
impl Clone for utsname
impl Clone for group
impl Clone for hostent
impl Clone for in6_addr
impl Clone for libc::unix::iovec
impl Clone for ipv6_mreq
impl Clone for libc::unix::itimerval
impl Clone for linger
impl Clone for libc::unix::pollfd
impl Clone for protoent
impl Clone for libc::unix::rlimit
impl Clone for libc::unix::rusage
impl Clone for servent
impl Clone for libc::unix::sigval
impl Clone for libc::unix::timespec
impl Clone for libc::unix::timeval
impl Clone for tms
impl Clone for utimbuf
impl Clone for libc::unix::winsize
impl Clone for Elf_Dyn
impl Clone for Elf_auxv_t
impl Clone for __kernel_fd_set
impl Clone for __kernel_fsid_t
impl Clone for __kernel_itimerspec
impl Clone for __kernel_old_itimerval
impl Clone for __kernel_old_timespec
impl Clone for __kernel_old_timeval
impl Clone for __kernel_sock_timeval
impl Clone for __kernel_timespec
impl Clone for __old_kernel_stat
impl Clone for __sifields__bindgen_ty_1
impl Clone for __sifields__bindgen_ty_2
impl Clone for __sifields__bindgen_ty_3
impl Clone for __sifields__bindgen_ty_4
impl Clone for __sifields__bindgen_ty_5
impl Clone for __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1
impl Clone for __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2
impl Clone for __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3
impl Clone for __sifields__bindgen_ty_6
impl Clone for __sifields__bindgen_ty_7
impl Clone for __user_cap_data_struct
impl Clone for __user_cap_header_struct
impl Clone for cachestat
impl Clone for cachestat_range
impl Clone for clone_args
impl Clone for compat_statfs64
impl Clone for dmabuf_cmsg
impl Clone for dmabuf_token
impl Clone for linux_raw_sys::general::epoll_event
impl Clone for linux_raw_sys::general::epoll_params
impl Clone for f_owner_ex
impl Clone for linux_raw_sys::general::file_clone_range
impl Clone for file_dedupe_range_info
impl Clone for files_stat_struct
impl Clone for linux_raw_sys::general::flock64
impl Clone for linux_raw_sys::general::flock
impl Clone for fs_sysfs_path
impl Clone for fscrypt_get_key_status_arg
impl Clone for fscrypt_get_policy_ex_arg
impl Clone for fscrypt_key
impl Clone for fscrypt_key_specifier
impl Clone for fscrypt_policy_v1
impl Clone for fscrypt_policy_v2
impl Clone for fscrypt_remove_key_arg
impl Clone for fstrim_range
impl Clone for fsuuid2
impl Clone for fsxattr
impl Clone for futex_waitv
impl Clone for inodes_stat_t
impl Clone for linux_raw_sys::general::iovec
impl Clone for linux_raw_sys::general::itimerspec
impl Clone for linux_raw_sys::general::itimerval
impl Clone for kernel_sigaction
impl Clone for kernel_sigset_t
impl Clone for ktermios
impl Clone for mnt_id_req
impl Clone for linux_raw_sys::general::mount_attr
impl Clone for linux_raw_sys::general::open_how
impl Clone for page_region
impl Clone for pm_scan_arg
impl Clone for linux_raw_sys::general::pollfd
impl Clone for procmap_query
impl Clone for linux_raw_sys::general::rlimit64
impl Clone for linux_raw_sys::general::rlimit
impl Clone for robust_list
impl Clone for robust_list_head
impl Clone for linux_raw_sys::general::rusage
impl Clone for linux_raw_sys::general::sigaction
impl Clone for sigaltstack
impl Clone for linux_raw_sys::general::sigevent
impl Clone for sigevent__bindgen_ty_1__bindgen_ty_1
impl Clone for siginfo
impl Clone for siginfo__bindgen_ty_1__bindgen_ty_1
impl Clone for linux_raw_sys::general::stat64
impl Clone for linux_raw_sys::general::stat
impl Clone for linux_raw_sys::general::statfs64
impl Clone for linux_raw_sys::general::statfs
impl Clone for linux_raw_sys::general::statx
impl Clone for linux_raw_sys::general::statx_timestamp
impl Clone for termio
impl Clone for linux_raw_sys::general::termios2
impl Clone for linux_raw_sys::general::termios
impl Clone for linux_raw_sys::general::timespec
impl Clone for linux_raw_sys::general::timeval
impl Clone for timezone
impl Clone for uffd_msg
impl Clone for uffd_msg__bindgen_ty_1__bindgen_ty_1
impl Clone for uffd_msg__bindgen_ty_1__bindgen_ty_2
impl Clone for uffd_msg__bindgen_ty_1__bindgen_ty_3
impl Clone for uffd_msg__bindgen_ty_1__bindgen_ty_4
impl Clone for uffd_msg__bindgen_ty_1__bindgen_ty_5
impl Clone for uffdio_api
impl Clone for uffdio_continue
impl Clone for uffdio_copy
impl Clone for uffdio_move
impl Clone for uffdio_poison
impl Clone for uffdio_range
impl Clone for uffdio_register
impl Clone for uffdio_writeprotect
impl Clone for uffdio_zeropage
impl Clone for user_desc
impl Clone for vfs_cap_data
impl Clone for vfs_cap_data__bindgen_ty_1
impl Clone for vfs_ns_cap_data
impl Clone for vfs_ns_cap_data__bindgen_ty_1
impl Clone for vgetrandom_opaque_params
impl Clone for linux_raw_sys::general::winsize
impl Clone for xattr_args
impl Clone for prctl_mm_map
impl Clone for Thread
impl Clone for WaitTimeoutResult
impl Clone for CreateFlags
impl Clone for ReadFlags
impl Clone for WatchFlags
impl Clone for Access
impl Clone for AtFlags
impl Clone for FallocateFlags
impl Clone for Fsid
impl Clone for MemfdFlags
impl Clone for Mode
impl Clone for OFlags
impl Clone for RenameFlags
impl Clone for ResolveFlags
impl Clone for SealFlags
impl Clone for Stat
impl Clone for StatFs
impl Clone for StatVfsMountFlags
impl Clone for Errno
impl Clone for DupFlags
impl Clone for FdFlags
impl Clone for ReadWriteFlags
impl Clone for MapFlags
impl Clone for MlockAllFlags
impl Clone for MlockFlags
impl Clone for MprotectFlags
impl Clone for MremapFlags
impl Clone for MsyncFlags
impl Clone for ProtFlags
impl Clone for UserfaultfdFlags
impl Clone for Flags
impl Clone for WaitFlags
impl Clone for TimerfdFlags
impl Clone for TimerfdTimerFlags
impl Clone for Timestamps
impl Clone for IFlags
impl Clone for Statx
impl Clone for StatxAttributes
impl Clone for StatxFlags
impl Clone for StatxTimestamp
impl Clone for XattrFlags
impl Clone for DecInt
impl Clone for Pid
impl Clone for PidfdFlags
impl Clone for PidfdGetfdFlags
impl Clone for FloatingPointEmulationControl
impl Clone for FloatingPointExceptionMode
impl Clone for PrctlMmMap
impl Clone for SpeculationFeatureControl
impl Clone for SpeculationFeatureState
impl Clone for UnalignedAccessControl
impl Clone for Rlimit
impl Clone for Flock
impl Clone for WaitIdOptions
impl Clone for WaitIdStatus
impl Clone for WaitOptions
impl Clone for WaitStatus
impl Clone for KernelSigaction
impl Clone for KernelSigactionFlags
impl Clone for Signal
impl Clone for Wait
impl Clone for WaitPtr
impl Clone for WaitvFlags
impl Clone for Cpuid
impl Clone for CapabilityFlags
impl Clone for CapabilitySets
impl Clone for MembarrierQuery
impl Clone for CapabilitiesSecureBits
impl Clone for SVEVectorLengthConfig
impl Clone for TaggedAddressMode
impl Clone for CpuSet
impl Clone for ThreadNameSpaceType
impl Clone for Itimerspec
impl Clone for Timespec
impl Clone for Gid
impl Clone for Uid
impl Clone for UnwindAction
impl Clone for UnwindReasonCode
impl Clone for __c_anonymous_ptrace_syscall_info_data
impl Clone for __c_anonymous_ifc_ifcu
impl Clone for __c_anonymous_ifr_ifru
impl Clone for __c_anonymous_iwreq
impl Clone for __c_anonymous_ptp_perout_request_1
impl Clone for __c_anonymous_ptp_perout_request_2
impl Clone for __c_anonymous_sockaddr_can_can_addr
impl Clone for __c_anonymous_xsk_tx_metadata_union
impl Clone for iwreq_data
impl Clone for tpacket_bd_header_u
impl Clone for tpacket_req_u
impl Clone for Elf_Dyn_Union
impl Clone for __sifields
impl Clone for __sifields__bindgen_ty_5__bindgen_ty_1
impl Clone for fscrypt_get_policy_ex_arg__bindgen_ty_1
impl Clone for fscrypt_key_specifier__bindgen_ty_1
impl Clone for sigaction__bindgen_ty_1
impl Clone for sigevent__bindgen_ty_1
impl Clone for siginfo__bindgen_ty_1
impl Clone for linux_raw_sys::general::sigval
impl Clone for uffd_msg__bindgen_ty_1
impl Clone for uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1
impl<'a> Clone for Utf8Pattern<'a>
impl<'a> Clone for DynamicClockId<'a>
impl<'a> Clone for WaitId<'a>
impl<'a> Clone for Source<'a>
impl<'a> Clone for Arguments<'a>
impl<'a> Clone for PhantomContravariantLifetime<'a>
impl<'a> Clone for PhantomCovariantLifetime<'a>
impl<'a> Clone for PhantomInvariantLifetime<'a>
impl<'a> Clone for origin_studio::panic::Location<'a>
impl<'a> Clone for EscapeAscii<'a>
impl<'a> Clone for CharSearcher<'a>
impl<'a> Clone for origin_studio::str::Bytes<'a>
impl<'a> Clone for CharIndices<'a>
impl<'a> Clone for Chars<'a>
impl<'a> Clone for EncodeUtf16<'a>
impl<'a> Clone for origin_studio::str::EscapeDebug<'a>
impl<'a> Clone for origin_studio::str::EscapeDefault<'a>
impl<'a> Clone for origin_studio::str::EscapeUnicode<'a>
impl<'a> Clone for Lines<'a>
impl<'a> Clone for LinesAny<'a>
impl<'a> Clone for SplitAsciiWhitespace<'a>
impl<'a> Clone for SplitWhitespace<'a>
impl<'a> Clone for Utf8Chunk<'a>
impl<'a> Clone for Utf8Chunks<'a>
impl<'a> Clone for core::ffi::c_str::Bytes<'a>
impl<'a> Clone for IoSlice<'a>
impl<'a, 'b> Clone for CharSliceSearcher<'a, 'b>
impl<'a, 'b> Clone for StrSearcher<'a, 'b>
impl<'a, 'b, const N: usize> Clone for CharArrayRefSearcher<'a, 'b, N>
impl<'a, F> Clone for CharPredicateSearcher<'a, F>
impl<'a, K> Clone for origin_studio::collections::btree_set::Cursor<'a, K>where
K: Clone + 'a,
impl<'a, P> Clone for MatchIndices<'a, P>
impl<'a, P> Clone for Matches<'a, P>
impl<'a, P> Clone for RMatchIndices<'a, P>
impl<'a, P> Clone for RMatches<'a, P>
impl<'a, P> Clone for origin_studio::str::RSplit<'a, P>
impl<'a, P> Clone for RSplitN<'a, P>
impl<'a, P> Clone for RSplitTerminator<'a, P>
impl<'a, P> Clone for origin_studio::str::Split<'a, P>
impl<'a, P> Clone for origin_studio::str::SplitInclusive<'a, P>
impl<'a, P> Clone for SplitN<'a, P>
impl<'a, P> Clone for SplitTerminator<'a, P>
impl<'a, R> Clone for CallFrameInstructionIter<'a, R>
impl<'a, R> Clone for EhHdrTable<'a, R>
impl<'a, T> Clone for RChunksExact<'a, T>
impl<'a, T, const N: usize> Clone for ArrayWindows<'a, T, N>where
T: Clone + 'a,
impl<'a, const N: usize> Clone for CharArraySearcher<'a, N>
impl<'bases, Section, R> Clone for CieOrFde<'bases, Section, R>
impl<'bases, Section, R> Clone for CfiEntriesIter<'bases, Section, R>
impl<'bases, Section, R> Clone for PartialFrameDescriptionEntry<'bases, Section, R>where
Section: Clone + UnwindSection<R>,
R: Clone + Reader,
<R as Reader>::Offset: Clone,
<Section as UnwindSection<R>>::Offset: Clone,
impl<'f> Clone for VaListImpl<'f>
impl<'fd> Clone for BorrowedFd<'fd>
impl<'index, R> Clone for UnitIndexSectionIterator<'index, R>
impl<'input, Endian> Clone for EndianSlice<'input, Endian>
impl<'iter, T> Clone for RegisterRuleIter<'iter, T>where
T: Clone + ReaderOffset,
impl<A> Clone for Repeat<A>where
A: Clone,
impl<A> Clone for RepeatN<A>where
A: Clone,
impl<A> Clone for origin_studio::option::IntoIter<A>where
A: Clone,
impl<A> Clone for origin_studio::option::Iter<'_, A>
impl<A> Clone for IterRange<A>where
A: Clone,
impl<A> Clone for IterRangeFrom<A>where
A: Clone,
impl<A> Clone for IterRangeInclusive<A>where
A: Clone,
impl<A, B> Clone for Chain<A, B>
impl<A, B> Clone for Zip<A, B>
impl<B> Clone for Cow<'_, B>
impl<B, C> Clone for ControlFlow<B, C>
impl<Dyn> Clone for DynMetadata<Dyn>where
Dyn: ?Sized,
impl<F> Clone for FromFn<F>where
F: Clone,
impl<F> Clone for OnceWith<F>where
F: Clone,
impl<F> Clone for RepeatWith<F>where
F: Clone,
impl<G> Clone for FromCoroutine<G>where
G: Clone,
impl<H> Clone for BuildHasherDefault<H>
impl<I> Clone for FromIter<I>where
I: Clone,
impl<I> Clone for DecodeUtf16<I>
impl<I> Clone for Cloned<I>where
I: Clone,
impl<I> Clone for Copied<I>where
I: Clone,
impl<I> Clone for Cycle<I>where
I: Clone,
impl<I> Clone for Enumerate<I>where
I: Clone,
impl<I> Clone for Fuse<I>where
I: Clone,
impl<I> Clone for Intersperse<I>
impl<I> Clone for Peekable<I>
impl<I> Clone for Skip<I>where
I: Clone,
impl<I> Clone for StepBy<I>where
I: Clone,
impl<I> Clone for Take<I>where
I: Clone,
impl<I, F> Clone for FilterMap<I, F>
impl<I, F> Clone for Inspect<I, F>
impl<I, F> Clone for Map<I, F>
impl<I, F, const N: usize> Clone for MapWindows<I, F, N>
impl<I, G> Clone for IntersperseWith<I, G>
impl<I, P> Clone for Filter<I, P>
impl<I, P> Clone for MapWhile<I, P>
impl<I, P> Clone for SkipWhile<I, P>
impl<I, P> Clone for TakeWhile<I, P>
impl<I, St, F> Clone for Scan<I, St, F>
impl<I, U> Clone for Flatten<I>
impl<I, U, F> Clone for FlatMap<I, U, F>
impl<I, const N: usize> Clone for origin_studio::iter::ArrayChunks<I, N>
impl<Idx> Clone for origin_studio::ops::Range<Idx>where
Idx: Clone,
impl<Idx> Clone for origin_studio::ops::RangeFrom<Idx>where
Idx: Clone,
impl<Idx> Clone for origin_studio::ops::RangeInclusive<Idx>where
Idx: Clone,
impl<Idx> Clone for RangeTo<Idx>where
Idx: Clone,
impl<Idx> Clone for RangeToInclusive<Idx>where
Idx: Clone,
impl<Idx> Clone for origin_studio::range::Range<Idx>where
Idx: Clone,
impl<Idx> Clone for origin_studio::range::RangeFrom<Idx>where
Idx: Clone,
impl<Idx> Clone for origin_studio::range::RangeInclusive<Idx>where
Idx: Clone,
impl<K, V> Clone for origin_studio::collections::btree_map::Cursor<'_, K, V>
impl<K, V> Clone for origin_studio::collections::btree_map::Iter<'_, K, V>
impl<K, V> Clone for Keys<'_, K, V>
impl<K, V> Clone for origin_studio::collections::btree_map::Range<'_, K, V>
impl<K, V> Clone for Values<'_, K, V>
impl<K, V, A> Clone for BTreeMap<K, V, A>
impl<Ptr> Clone for Pin<Ptr>where
Ptr: Clone,
impl<R> Clone for RawLocListEntry<R>
impl<R> Clone for DebugAddr<R>where
R: Clone,
impl<R> Clone for ArangeEntryIter<R>
impl<R> Clone for ArangeHeaderIter<R>
impl<R> Clone for DebugAranges<R>where
R: Clone,
impl<R> Clone for DebugFrame<R>
impl<R> Clone for EhFrame<R>
impl<R> Clone for EhFrameHdr<R>
impl<R> Clone for ParsedEhFrameHdr<R>
impl<R> Clone for DebugCuIndex<R>where
R: Clone,
impl<R> Clone for DebugTuIndex<R>where
R: Clone,
impl<R> Clone for UnitIndex<R>
impl<R> Clone for DebugLoc<R>where
R: Clone,
impl<R> Clone for DebugLocLists<R>where
R: Clone,
impl<R> Clone for LocationListEntry<R>
impl<R> Clone for LocationLists<R>where
R: Clone,
impl<R> Clone for Expression<R>
impl<R> Clone for OperationIter<R>
impl<R> Clone for DebugRanges<R>where
R: Clone,
impl<R> Clone for DebugRngLists<R>where
R: Clone,
impl<R> Clone for RangeLists<R>where
R: Clone,
impl<R> Clone for DebugLineStr<R>where
R: Clone,
impl<R> Clone for DebugStr<R>where
R: Clone,
impl<R> Clone for DebugStrOffsets<R>where
R: Clone,
impl<R, Offset> Clone for gimli::read::op::Location<R, Offset>
impl<R, Offset> Clone for Operation<R, Offset>
impl<R, Offset> Clone for ArangeHeader<R, Offset>
impl<R, Offset> Clone for CommonInformationEntry<R, Offset>
impl<R, Offset> Clone for FrameDescriptionEntry<R, Offset>
impl<R, Offset> Clone for Piece<R, Offset>
impl<R, T> Clone for RelocateReader<R, T>
impl<Storage> Clone for __BindgenBitfieldUnit<Storage>where
Storage: Clone,
impl<T> !Clone for &mut Twhere
T: ?Sized,
Shared references can be cloned, but mutable references cannot!
impl<T> Clone for Bound<T>where
T: Clone,
impl<T> Clone for Option<T>where
T: Clone,
impl<T> Clone for Poll<T>where
T: Clone,
impl<T> Clone for UnitSectionOffset<T>where
T: Clone,
impl<T> Clone for CallFrameInstruction<T>where
T: Clone + ReaderOffset,
impl<T> Clone for CfaRule<T>where
T: Clone + ReaderOffset,
impl<T> Clone for RegisterRule<T>where
T: Clone + ReaderOffset,
impl<T> Clone for DieReference<T>where
T: Clone,
impl<T> Clone for RawRngListEntry<T>where
T: Clone,
impl<T> Clone for *const Twhere
T: ?Sized,
impl<T> Clone for *mut Twhere
T: ?Sized,
impl<T> Clone for &Twhere
T: ?Sized,
Shared references can be cloned, but mutable references cannot!