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
}
}
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§
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.
Implementors§
impl Clone for EntityIndex
impl Clone for wasmtime_environ::EntityType
impl Clone for GlobalInit
impl Clone for MemoryStyle
impl Clone for wasmtime_environ::ModuleType
impl Clone for SettingKind
impl Clone for TableStyle
impl Clone for Trap
impl Clone for WasmType
impl Clone for BlockType
impl Clone for CanonicalFunction
impl Clone for CanonicalOption
impl Clone for ComponentExternalKind
impl Clone for ComponentOuterAliasKind
impl Clone for ComponentTypeRef
impl Clone for wasmtime_environ::wasmparser::ComponentValType
impl Clone for wasmtime_environ::wasmparser::Encoding
impl Clone for ExternalKind
impl Clone for FrameKind
impl Clone for InstantiationArgKind
impl Clone for OuterAliasKind
impl Clone for PrimitiveValType
impl Clone for TagKind
impl Clone for Type
impl Clone for TypeBounds
impl Clone for TypeRef
impl Clone for ValType
impl Clone for wasmtime_environ::wasmparser::types::ComponentDefinedType
impl Clone for ComponentEntityType
impl Clone for ComponentInstanceTypeKind
impl Clone for wasmtime_environ::wasmparser::types::ComponentValType
impl Clone for wasmtime_environ::wasmparser::types::EntityType
impl Clone for InstanceTypeKind
impl Clone for wasmtime_environ::__core::cmp::Ordering
impl Clone for Infallible
impl Clone for wasmtime_environ::__core::fmt::Alignment
impl Clone for IpAddr
impl Clone for Ipv6MulticastScope
impl Clone for SocketAddr
impl Clone for FpCategory
impl Clone for IntErrorKind
impl Clone for Which
impl Clone for SearchStep
impl Clone for wasmtime_environ::__core::sync::atomic::Ordering
impl Clone for TryReserveErrorKind
impl Clone for VarError
impl Clone for SeekFrom
impl Clone for ErrorKind
impl Clone for Shutdown
impl Clone for BacktraceStyle
impl Clone for RecvTimeoutError
impl Clone for TryRecvError
impl Clone for DwarfFileType
impl Clone for Format
impl Clone for gimli::common::SectionId
impl Clone for RunTimeEndian
impl Clone for Pointer
impl Clone for gimli::read::Error
impl Clone for ColumnType
impl Clone for Value
impl Clone for ValueType
impl Clone for log::Level
impl Clone for LevelFilter
impl Clone for AddressSize
impl Clone for object::common::Architecture
impl Clone for object::common::BinaryFormat
impl Clone for ComdatKind
impl Clone for FileFlags
impl Clone for RelocationEncoding
impl Clone for RelocationKind
impl Clone for SectionFlags
impl Clone for SectionKind
impl Clone for SegmentFlags
impl Clone for SymbolKind
impl Clone for SymbolScope
impl Clone for object::endian::Endianness
impl Clone for CompressionFormat
impl Clone for FileKind
impl Clone for ObjectKind
impl Clone for RelocationTarget
impl Clone for object::read::SymbolSection
impl Clone for Mangling
impl Clone for StandardSection
impl Clone for StandardSegment
impl Clone for object::write::SymbolSection
impl Clone for CDataModel
impl Clone for Size
impl Clone for target_lexicon::parse_error::ParseError
impl Clone for Aarch64Architecture
impl Clone for target_lexicon::targets::Architecture
impl Clone for ArmArchitecture
impl Clone for target_lexicon::targets::BinaryFormat
impl Clone for CustomVendor
impl Clone for Environment
impl Clone for Mips32Architecture
impl Clone for Mips64Architecture
impl Clone for OperatingSystem
impl Clone for Riscv32Architecture
impl Clone for Riscv64Architecture
impl Clone for Vendor
impl Clone for X86_32Architecture
impl Clone for CallingConvention
impl Clone for target_lexicon::triple::Endianness
impl Clone for PointerWidth
impl Clone for Origin
impl Clone for url::parser::ParseError
impl Clone for SyntaxViolation
impl Clone for Position
impl Clone for bool
impl Clone for char
impl Clone for f32
impl Clone for f64
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 AnyfuncIndex
impl Clone for BuiltinFunctionIndex
impl Clone for DataIndex
impl Clone for DefinedFuncIndex
impl Clone for DefinedGlobalIndex
impl Clone for DefinedMemoryIndex
impl Clone for DefinedTableIndex
impl Clone for ElemIndex
impl Clone for FilePos
impl Clone for FuncIndex
impl Clone for FunctionLoc
impl Clone for wasmtime_environ::Global
impl Clone for GlobalIndex
impl Clone for InstructionAddressMap
impl Clone for Memory
impl Clone for MemoryIndex
impl Clone for MemoryInitializer
impl Clone for MemoryPlan
impl Clone for OwnedMemoryIndex
impl Clone for Setting
impl Clone for SignatureIndex
impl Clone for StaticMemoryInitializer
impl Clone for Table
impl Clone for TableIndex
impl Clone for TableInitializer
impl Clone for TablePlan
impl Clone for Tag
impl Clone for TagIndex
impl Clone for TrapInformation
impl Clone for Tunables
impl Clone for TypeIndex
impl Clone for WasmFuncType
impl Clone for BinaryReaderError
impl Clone for ComponentStartFunction
impl Clone for Frame
impl Clone for FuncType
impl Clone for GlobalType
impl Clone for Ieee32
impl Clone for Ieee64
impl Clone for MemArg
impl Clone for MemoryType
impl Clone for Parser
impl Clone for TableType
impl Clone for TagType
impl Clone for V128
impl Clone for WasmFeatures
impl Clone for wasmtime_environ::wasmparser::types::ComponentFuncType
impl Clone for ComponentInstanceType
impl Clone for wasmtime_environ::wasmparser::types::ComponentType
impl Clone for InstanceType
impl Clone for KebabString
impl Clone for wasmtime_environ::wasmparser::types::ModuleType
impl Clone for RecordType
impl Clone for TupleType
impl Clone for wasmtime_environ::wasmparser::types::TypeId
impl Clone for UnionType
impl Clone for wasmtime_environ::wasmparser::types::VariantCase
impl Clone for VariantType
impl Clone for AllocError
impl Clone for Layout
impl Clone for LayoutError
impl Clone for wasmtime_environ::__core::any::TypeId
impl Clone for CpuidResult
impl Clone for __m128
impl Clone for __m128bh
impl Clone for __m128d
impl Clone for __m128i
impl Clone for __m256
impl Clone for __m256bh
impl Clone for __m256d
impl Clone for __m256i
impl Clone for __m512
impl Clone for __m512bh
impl Clone for __m512d
impl Clone for __m512i
impl Clone for wasmtime_environ::__core::array::TryFromSliceError
impl Clone for wasmtime_environ::__core::ascii::EscapeDefault
impl Clone for CharTryFromError
impl Clone for DecodeUtf16Error
impl Clone for wasmtime_environ::__core::char::EscapeDebug
impl Clone for wasmtime_environ::__core::char::EscapeDefault
impl Clone for wasmtime_environ::__core::char::EscapeUnicode
impl Clone for ParseCharError
impl Clone for ToLowercase
impl Clone for ToUppercase
impl Clone for TryFromCharError
impl Clone for FromBytesUntilNulError
impl Clone for FromBytesWithNulError
impl Clone for wasmtime_environ::__core::fmt::Error
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 NonZeroI8
impl Clone for NonZeroI16
impl Clone for NonZeroI32
impl Clone for NonZeroI64
impl Clone for NonZeroI128
impl Clone for NonZeroIsize
impl Clone for NonZeroU8
impl Clone for NonZeroU16
impl Clone for NonZeroU32
impl Clone for NonZeroU64
impl Clone for NonZeroU128
impl Clone for NonZeroUsize
impl Clone for ParseFloatError
impl Clone for ParseIntError
impl Clone for TryFromIntError
impl Clone for RangeFull
impl Clone for wasmtime_environ::__core::ptr::Alignment
impl Clone for TimSortRun
impl Clone for ParseBoolError
impl Clone for Utf8Error
impl Clone for RawWakerVTable
impl Clone for Waker
impl Clone for Duration
impl Clone for TryFromFloatSecsError
impl Clone for alloc::alloc::Global
impl Clone for Box<str, Global>
impl Clone for Box<CStr, Global>
impl Clone for Box<OsStr, Global>
impl Clone for Box<Path, Global>
impl Clone for alloc::collections::TryReserveError
impl Clone for CString
impl Clone for FromVecWithNulError
impl Clone for IntoStringError
impl Clone for NulError
impl Clone for FromUtf8Error
impl Clone for String
impl Clone for System
impl Clone for DefaultHasher
impl Clone for std::collections::hash::map::RandomState
impl Clone for OsString
impl Clone for FileTimes
impl Clone for FileType
impl Clone for std::fs::Metadata
impl Clone for OpenOptions
impl Clone for Permissions
impl Clone for std::io::util::Empty
impl Clone for Sink
impl Clone for InvalidHandleError
impl Clone for NullHandleError
impl Clone for PathBuf
impl Clone for StripPrefixError
impl Clone for ExitCode
impl Clone for ExitStatus
impl Clone for ExitStatusError
impl Clone for Output
impl Clone for WaitTimeoutResult
impl Clone for RecvError
impl Clone for AccessError
impl Clone for Thread
impl Clone for ThreadId
impl Clone for Instant
impl Clone for SystemTime
impl Clone for SystemTimeError
impl Clone for getrandom::error::Error
impl Clone for AArch64
impl Clone for Arm
impl Clone for RiscV
impl Clone for X86
impl Clone for X86_64
impl Clone for DebugTypeSignature
impl Clone for DwoId
impl Clone for gimli::common::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 gimli::endianity::BigEndian
impl Clone for gimli::endianity::LittleEndian
impl Clone for Abbreviation
impl Clone for Abbreviations
impl Clone for AttributeSpecification
impl Clone for ArangeEntry
impl Clone for Augmentation
impl Clone for BaseAddresses
impl Clone for SectionBaseAddresses
impl Clone for UnitIndexSection
impl Clone for FileEntryFormat
impl Clone for LineRow
impl Clone for ReaderOffsetId
impl Clone for gimli::read::rnglists::Range
impl Clone for StoreOnHeap
impl Clone for Ident
impl Clone for object::endian::BigEndian
impl Clone for object::endian::LittleEndian
impl Clone for VersionIndex
impl Clone for CompressedFileRange
impl Clone for object::read::Error
impl Clone for object::read::SectionIndex
impl Clone for object::read::SymbolIndex
impl Clone for FileHeader
impl Clone for ProgramHeader
impl Clone for Rel
impl Clone for SectionHeader
impl Clone for object::write::elf::writer::SectionIndex
impl Clone for Sym
impl Clone for object::write::elf::writer::SymbolIndex
impl Clone for object::write::elf::writer::Verdef
impl Clone for object::write::elf::writer::Vernaux
impl Clone for object::write::elf::writer::Verneed
impl Clone for StringId
impl Clone for ComdatId
impl Clone for object::write::Error
impl Clone for object::write::SectionId
impl Clone for SymbolId
impl Clone for IgnoredAny
impl Clone for serde::de::value::Error
impl Clone for Triple
impl Clone for OpaqueOrigin
impl Clone for Url
impl Clone for AHasher
impl Clone for BidiClass
impl Clone for Config
impl Clone for FinderBuilder
impl Clone for Level
impl Clone for Prefilter
impl Clone for RandomState
impl Clone for TryFromSliceError
impl Clone for TryReserveError
impl<'a> Clone for ComponentAlias<'a>
impl<'a> Clone for wasmtime_environ::wasmparser::ComponentDefinedType<'a>
impl<'a> Clone for ComponentFuncResult<'a>
impl<'a> Clone for ComponentInstance<'a>
impl<'a> Clone for ComponentName<'a>
impl<'a> Clone for wasmtime_environ::wasmparser::ComponentType<'a>
impl<'a> Clone for ComponentTypeDeclaration<'a>
impl<'a> Clone for CoreType<'a>
impl<'a> Clone for DataKind<'a>
impl<'a> Clone for ElementItems<'a>
impl<'a> Clone for ElementKind<'a>
impl<'a> Clone for Instance<'a>
impl<'a> Clone for InstanceTypeDeclaration<'a>
impl<'a> Clone for ModuleTypeDeclaration<'a>
impl<'a> Clone for Name<'a>
impl<'a> Clone for Operator<'a>
impl<'a> Clone for Component<'a>
impl<'a> Clone for Prefix<'a>
impl<'a> Clone for Unexpected<'a>
impl<'a> Clone for BinaryReader<'a>
impl<'a> Clone for BrTable<'a>
impl<'a> Clone for ComponentExport<'a>
impl<'a> Clone for wasmtime_environ::wasmparser::ComponentFuncType<'a>
impl<'a> Clone for ComponentImport<'a>
impl<'a> Clone for ComponentInstantiationArg<'a>
impl<'a> Clone for ConstExpr<'a>
impl<'a> Clone for CustomSectionReader<'a>
impl<'a> Clone for Data<'a>
impl<'a> Clone for Element<'a>
impl<'a> Clone for wasmtime_environ::wasmparser::Export<'a>
impl<'a> Clone for FunctionBody<'a>
impl<'a> Clone for wasmtime_environ::wasmparser::Global<'a>
impl<'a> Clone for wasmtime_environ::wasmparser::Import<'a>
impl<'a> Clone for IndirectNaming<'a>
impl<'a> Clone for InstantiationArg<'a>
impl<'a> Clone for Naming<'a>
impl<'a> Clone for OperatorsReader<'a>
impl<'a> Clone for ProducersField<'a>
impl<'a> Clone for ProducersFieldValue<'a>
impl<'a> Clone for wasmtime_environ::wasmparser::VariantCase<'a>
impl<'a> Clone for TypesRef<'a>
impl<'a> Clone for Source<'a>
impl<'a> Clone for Arguments<'a>
impl<'a> Clone for wasmtime_environ::__core::panic::Location<'a>
impl<'a> Clone for EscapeAscii<'a>
impl<'a> Clone for CharSearcher<'a>
impl<'a> Clone for wasmtime_environ::__core::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 wasmtime_environ::__core::str::EscapeDebug<'a>
impl<'a> Clone for wasmtime_environ::__core::str::EscapeDefault<'a>
impl<'a> Clone for wasmtime_environ::__core::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 IoSlice<'a>
impl<'a> Clone for Ancestors<'a>
impl<'a> Clone for Components<'a>
impl<'a> Clone for std::path::Iter<'a>
impl<'a> Clone for PrefixComponent<'a>
impl<'a> Clone for EncodeWide<'a>
impl<'a> Clone for anyhow::Chain<'a>
impl<'a> Clone for log::Metadata<'a>
impl<'a> Clone for Record<'a>
impl<'a> Clone for ParseOptions<'a>
impl<'a> Clone for Parse<'a>
impl<'a> Clone for PercentDecode<'a>
impl<'a> Clone for PercentEncode<'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, E> Clone for BytesDeserializer<'a, E>
impl<'a, E> Clone for CowStrDeserializer<'a, E>
impl<'a, F> Clone for CharPredicateSearcher<'a, F>where F: Clone + FnMut(char) -> bool,
impl<'a, P> Clone for MatchIndices<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, P> Clone for Matches<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, P> Clone for RMatchIndices<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, P> Clone for RMatches<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, P> Clone for wasmtime_environ::__core::str::RSplit<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, P> Clone for RSplitN<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, P> Clone for RSplitTerminator<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, P> Clone for wasmtime_environ::__core::str::Split<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, P> Clone for wasmtime_environ::__core::str::SplitInclusive<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, P> Clone for SplitN<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, P> Clone for SplitTerminator<'a, P>where P: Pattern<'a>, <P as Pattern<'a>>::Searcher: Clone,
impl<'a, R> Clone for CallFrameInstructionIter<'a, R>where R: Clone + Reader,
impl<'a, R> Clone for EhHdrTable<'a, R>where R: Clone + Reader,
impl<'a, R> Clone for ReadCacheRange<'a, R>where R: Read + Seek,
impl<'a, T> Clone for WasmFuncTypeInputs<'a, T>
impl<'a, T> Clone for WasmFuncTypeOutputs<'a, T>
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<'abbrev, 'entry, 'unit, R> Clone for AttrsIter<'abbrev, 'entry, 'unit, R>where R: Clone + Reader,
impl<'abbrev, 'unit, R> Clone for EntriesCursor<'abbrev, 'unit, R>where R: Clone + Reader,
impl<'abbrev, 'unit, R> Clone for EntriesRaw<'abbrev, 'unit, R>where R: Clone + Reader,
impl<'abbrev, 'unit, R> Clone for EntriesTree<'abbrev, 'unit, R>where R: Clone + Reader,
impl<'abbrev, 'unit, R, Offset> Clone for DebuggingInformationEntry<'abbrev, 'unit, R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<'bases, Section, R> Clone for CieOrFde<'bases, Section, R>where Section: Clone + UnwindSection<R>, R: Clone + Reader,
impl<'bases, Section, R> Clone for CfiEntriesIter<'bases, Section, R>where Section: Clone + UnwindSection<R>, R: Clone + Reader,
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<'data> Clone for Version<'data>
impl<'data> Clone for CodeView<'data>
impl<'data> Clone for CompressedData<'data>
impl<'data> Clone for object::read::Export<'data>
impl<'data> Clone for object::read::Import<'data>
impl<'data> Clone for ObjectMap<'data>
impl<'data> Clone for ObjectMapEntry<'data>
impl<'data> Clone for SymbolMapName<'data>
impl<'data> Clone for object::read::util::Bytes<'data>
impl<'data, 'file, Elf, R> Clone for ElfSymbol<'data, 'file, Elf, R>where 'data: 'file, Elf: Clone + FileHeader, R: Clone + ReadRef<'data>, <Elf as FileHeader>::Endian: Clone, <Elf as FileHeader>::Sym: Clone,
impl<'data, 'file, Elf, R> Clone for ElfSymbolTable<'data, 'file, Elf, R>where 'data: 'file, Elf: Clone + FileHeader, R: Clone + ReadRef<'data>, <Elf as FileHeader>::Endian: Clone,
impl<'data, Elf> Clone for VerdauxIterator<'data, Elf>where Elf: Clone + FileHeader, <Elf as FileHeader>::Endian: Clone,
impl<'data, Elf> Clone for VerdefIterator<'data, Elf>where Elf: Clone + FileHeader, <Elf as FileHeader>::Endian: Clone,
impl<'data, Elf> Clone for VernauxIterator<'data, Elf>where Elf: Clone + FileHeader, <Elf as FileHeader>::Endian: Clone,
impl<'data, Elf> Clone for VerneedIterator<'data, Elf>where Elf: Clone + FileHeader, <Elf as FileHeader>::Endian: Clone,
impl<'data, Elf> Clone for VersionTable<'data, Elf>where Elf: Clone + FileHeader, <Elf as FileHeader>::Endian: Clone,
impl<'data, Elf, R> Clone for SectionTable<'data, Elf, R>where Elf: Clone + FileHeader, R: Clone + ReadRef<'data>, <Elf as FileHeader>::SectionHeader: Clone,
impl<'data, Elf, R> Clone for SymbolTable<'data, Elf, R>where Elf: Clone + FileHeader, R: Clone + ReadRef<'data>, <Elf as FileHeader>::Sym: Clone,
impl<'data, R> Clone for StringTable<'data, R>where R: Clone + ReadRef<'data>,
impl<'de, E> Clone for BorrowedBytesDeserializer<'de, E>
impl<'de, E> Clone for BorrowedStrDeserializer<'de, E>
impl<'de, E> Clone for StrDeserializer<'de, E>
impl<'de, I, E> Clone for MapDeserializer<'de, I, E>where I: Iterator + Clone, <I as Iterator>::Item: Pair, <<I as Iterator>::Item as Pair>::Second: Clone,
impl<'f> Clone for VaListImpl<'f>
impl<'handle> Clone for BorrowedHandle<'handle>
impl<'index, R> Clone for UnitIndexSectionIterator<'index, R>where R: Clone + Reader,
impl<'input, Endian> Clone for EndianSlice<'input, Endian>where Endian: Clone + Endianity,
impl<'iter, R> Clone for RegisterRuleIter<'iter, R>where R: Clone + Reader,
impl<'n> Clone for Finder<'n>
impl<'n> Clone for FinderRev<'n>
impl<'socket> Clone for BorrowedSocket<'socket>
impl<A> Clone for Repeat<A>where A: Clone,
impl<A> Clone for wasmtime_environ::__core::option::IntoIter<A>where A: Clone,
impl<A> Clone for wasmtime_environ::__core::option::Iter<'_, A>
impl<A> Clone for MapAccessDeserializer<A>where A: Clone,
impl<A> Clone for SeqAccessDeserializer<A>where A: Clone,
impl<A> Clone for ArrayVec<A>where A: Array + Clone, <A as Array>::Item: Clone,
impl<A> Clone for TinyVec<A>where A: Array + Clone, <A as Array>::Item: Clone,
impl<A, B> Clone for wasmtime_environ::__core::iter::Chain<A, B>where A: Clone, B: Clone,
impl<A, B> Clone for wasmtime_environ::__core::iter::Zip<A, B>where A: Clone, B: Clone,
impl<B> Clone for Cow<'_, B>where B: ToOwned + ?Sized,
impl<B, C> Clone for ControlFlow<B, C>where B: Clone, C: Clone,
impl<Dyn> Clone for DynMetadata<Dyn>where Dyn: ?Sized,
impl<E> Clone for CompressionHeader32<E>where E: Clone + Endian,
impl<E> Clone for CompressionHeader64<E>where E: Clone + Endian,
impl<E> Clone for Dyn32<E>where E: Clone + Endian,
impl<E> Clone for Dyn64<E>where E: Clone + Endian,
impl<E> Clone for FileHeader32<E>where E: Clone + Endian,
impl<E> Clone for FileHeader64<E>where E: Clone + Endian,
impl<E> Clone for GnuHashHeader<E>where E: Clone + Endian,
impl<E> Clone for HashHeader<E>where E: Clone + Endian,
impl<E> Clone for NoteHeader32<E>where E: Clone + Endian,
impl<E> Clone for NoteHeader64<E>where E: Clone + Endian,
impl<E> Clone for ProgramHeader32<E>where E: Clone + Endian,
impl<E> Clone for ProgramHeader64<E>where E: Clone + Endian,
impl<E> Clone for Rel32<E>where E: Clone + Endian,
impl<E> Clone for Rel64<E>where E: Clone + Endian,
impl<E> Clone for Rela32<E>where E: Clone + Endian,
impl<E> Clone for Rela64<E>where E: Clone + Endian,
impl<E> Clone for SectionHeader32<E>where E: Clone + Endian,
impl<E> Clone for SectionHeader64<E>where E: Clone + Endian,
impl<E> Clone for Sym32<E>where E: Clone + Endian,
impl<E> Clone for Sym64<E>where E: Clone + Endian,
impl<E> Clone for Syminfo32<E>where E: Clone + Endian,
impl<E> Clone for Syminfo64<E>where E: Clone + Endian,
impl<E> Clone for Verdaux<E>where E: Clone + Endian,
impl<E> Clone for object::elf::Verdef<E>where E: Clone + Endian,
impl<E> Clone for object::elf::Vernaux<E>where E: Clone + Endian,
impl<E> Clone for object::elf::Verneed<E>where E: Clone + Endian,
impl<E> Clone for Versym<E>where E: Clone + Endian,
impl<E> Clone for I16<E>where E: Clone + Endian,
impl<E> Clone for I32<E>where E: Clone + Endian,
impl<E> Clone for I64<E>where E: Clone + Endian,
impl<E> Clone for U16<E>where E: Clone + Endian,
impl<E> Clone for U32<E>where E: Clone + Endian,
impl<E> Clone for U64<E>where E: Clone + Endian,
impl<E> Clone for I16Bytes<E>where E: Clone + Endian,
impl<E> Clone for I32Bytes<E>where E: Clone + Endian,
impl<E> Clone for I64Bytes<E>where E: Clone + Endian,
impl<E> Clone for U16Bytes<E>where E: Clone + Endian,
impl<E> Clone for U32Bytes<E>where E: Clone + Endian,
impl<E> Clone for U64Bytes<E>where E: Clone + Endian,
impl<E> Clone for BoolDeserializer<E>
impl<E> Clone for CharDeserializer<E>
impl<E> Clone for F32Deserializer<E>
impl<E> Clone for F64Deserializer<E>
impl<E> Clone for I8Deserializer<E>
impl<E> Clone for I16Deserializer<E>
impl<E> Clone for I32Deserializer<E>
impl<E> Clone for I64Deserializer<E>
impl<E> Clone for I128Deserializer<E>
impl<E> Clone for IsizeDeserializer<E>
impl<E> Clone for StringDeserializer<E>
impl<E> Clone for U8Deserializer<E>
impl<E> Clone for U16Deserializer<E>
impl<E> Clone for U32Deserializer<E>
impl<E> Clone for U64Deserializer<E>
impl<E> Clone for U128Deserializer<E>
impl<E> Clone for UnitDeserializer<E>
impl<E> Clone for UsizeDeserializer<E>
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<H> Clone for BuildHasherDefault<H>
impl<I> Clone for FromIter<I>where I: Clone,
impl<I> Clone for DecodeUtf16<I>where I: Clone + Iterator<Item = u16>,
impl<I> Clone for wasmtime_environ::__core::iter::Cloned<I>where I: Clone,
impl<I> Clone for Copied<I>where I: Clone,
impl<I> Clone for wasmtime_environ::__core::iter::Cycle<I>where I: Clone,
impl<I> Clone for wasmtime_environ::__core::iter::Enumerate<I>where I: Clone,
impl<I> Clone for wasmtime_environ::__core::iter::Fuse<I>where I: Clone,
impl<I> Clone for Intersperse<I>where I: Clone + Iterator, <I as Iterator>::Item: Clone,
impl<I> Clone for wasmtime_environ::__core::iter::Peekable<I>where I: Clone + Iterator, <I as Iterator>::Item: Clone,
impl<I> Clone for wasmtime_environ::__core::iter::Skip<I>where I: Clone,
impl<I> Clone for wasmtime_environ::__core::iter::StepBy<I>where I: Clone,
impl<I> Clone for wasmtime_environ::__core::iter::Take<I>where I: Clone,
impl<I> Clone for fallible_iterator::Cloned<I>where I: Clone,
impl<I> Clone for Convert<I>where I: Clone,
impl<I> Clone for fallible_iterator::Cycle<I>where I: Clone,
impl<I> Clone for fallible_iterator::Enumerate<I>where I: Clone,
impl<I> Clone for fallible_iterator::Flatten<I>where I: FallibleIterator + Clone, <I as FallibleIterator>::Item: IntoFallibleIterator, <<I as FallibleIterator>::Item as IntoFallibleIterator>::IntoFallibleIter: Clone,
impl<I> Clone for fallible_iterator::Fuse<I>where I: Clone,
impl<I> Clone for Iterator<I>where I: Clone,
impl<I> Clone for fallible_iterator::Peekable<I>where I: Clone + FallibleIterator, <I as FallibleIterator>::Item: Clone,
impl<I> Clone for fallible_iterator::Rev<I>where I: Clone,
impl<I> Clone for fallible_iterator::Skip<I>where I: Clone,
impl<I> Clone for fallible_iterator::StepBy<I>where I: Clone,
impl<I> Clone for fallible_iterator::Take<I>where I: Clone,
impl<I> Clone for Decompositions<I>where I: Clone,
impl<I> Clone for Recompositions<I>where I: Clone,
impl<I> Clone for Replacements<I>where I: Clone,
impl<I, E> Clone for SeqDeserializer<I, E>where I: Clone, E: Clone,
impl<I, F> Clone for wasmtime_environ::__core::iter::FilterMap<I, F>where I: Clone, F: Clone,
impl<I, F> Clone for wasmtime_environ::__core::iter::Inspect<I, F>where I: Clone, F: Clone,
impl<I, F> Clone for wasmtime_environ::__core::iter::Map<I, F>where I: Clone, F: Clone,
impl<I, F> Clone for fallible_iterator::Filter<I, F>where I: Clone, F: Clone,
impl<I, F> Clone for fallible_iterator::FilterMap<I, F>where I: Clone, F: Clone,
impl<I, F> Clone for fallible_iterator::Inspect<I, F>where I: Clone, F: Clone,
impl<I, F> Clone for MapErr<I, F>where I: Clone, F: Clone,
impl<I, G> Clone for IntersperseWith<I, G>where I: Iterator + Clone, <I as Iterator>::Item: Clone, G: Clone,
impl<I, P> Clone for wasmtime_environ::__core::iter::Filter<I, P>where I: Clone, P: Clone,
impl<I, P> Clone for MapWhile<I, P>where I: Clone, P: Clone,
impl<I, P> Clone for wasmtime_environ::__core::iter::SkipWhile<I, P>where I: Clone, P: Clone,
impl<I, P> Clone for wasmtime_environ::__core::iter::TakeWhile<I, P>where I: Clone, P: Clone,
impl<I, P> Clone for fallible_iterator::SkipWhile<I, P>where I: Clone, P: Clone,
impl<I, P> Clone for fallible_iterator::TakeWhile<I, P>where I: Clone, P: Clone,
impl<I, St, F> Clone for wasmtime_environ::__core::iter::Scan<I, St, F>where I: Clone, St: Clone, F: Clone,
impl<I, St, F> Clone for fallible_iterator::Scan<I, St, F>where I: Clone, St: Clone, F: Clone,
impl<I, U> Clone for wasmtime_environ::__core::iter::Flatten<I>where I: Clone + Iterator, <I as Iterator>::Item: IntoIterator<IntoIter = U, Item = <U as Iterator>::Item>, U: Clone + Iterator,
impl<I, U, F> Clone for wasmtime_environ::__core::iter::FlatMap<I, U, F>where I: Clone, F: Clone, U: Clone + IntoIterator, <U as IntoIterator>::IntoIter: Clone,
impl<I, U, F> Clone for fallible_iterator::FlatMap<I, U, F>where I: Clone, U: Clone + IntoFallibleIterator, F: Clone, <U as IntoFallibleIterator>::IntoFallibleIter: Clone,
impl<I, const N: usize> Clone for wasmtime_environ::__core::iter::ArrayChunks<I, N>where I: Clone + Iterator, <I as Iterator>::Item: Clone,
impl<Idx> Clone for wasmtime_environ::__core::ops::Range<Idx>where Idx: Clone,
impl<Idx> Clone for RangeFrom<Idx>where Idx: Clone,
impl<Idx> Clone for RangeInclusive<Idx>where Idx: Clone,
impl<Idx> Clone for RangeTo<Idx>where Idx: Clone,
impl<Idx> Clone for RangeToInclusive<Idx>where Idx: Clone,
impl<K> Clone for EntitySet<K>where K: Clone + EntityRef,
impl<K> Clone for std::collections::hash::set::Iter<'_, K>
impl<K> Clone for Iter<'_, K>
impl<K, V> Clone for BoxedSlice<K, V>where K: Clone + EntityRef, V: Clone,
impl<K, V> Clone for PrimaryMap<K, V>where K: Clone + EntityRef, V: Clone,
impl<K, V> Clone for SecondaryMap<K, V>where K: Clone + EntityRef, V: Clone,
impl<K, V> Clone for alloc::collections::btree::map::Cursor<'_, K, V>
impl<K, V> Clone for alloc::collections::btree::map::Iter<'_, K, V>
impl<K, V> Clone for alloc::collections::btree::map::Keys<'_, K, V>
impl<K, V> Clone for alloc::collections::btree::map::Range<'_, K, V>
impl<K, V> Clone for alloc::collections::btree::map::Values<'_, K, V>
impl<K, V> Clone for std::collections::hash::map::Iter<'_, K, V>
impl<K, V> Clone for std::collections::hash::map::Keys<'_, K, V>
impl<K, V> Clone for std::collections::hash::map::Values<'_, K, V>
impl<K, V> Clone for indexmap::map::Iter<'_, K, V>
impl<K, V> Clone for indexmap::map::Keys<'_, K, V>
impl<K, V> Clone for indexmap::map::Values<'_, K, V>
impl<K, V> Clone for Iter<'_, K, V>
impl<K, V> Clone for Keys<'_, K, V>
impl<K, V> Clone for Values<'_, K, V>
impl<K, V, A> Clone for BTreeMap<K, V, A>where K: Clone, V: Clone, A: Allocator + Clone,
impl<K, V, S> Clone for std::collections::hash::map::HashMap<K, V, S>where K: Clone, V: Clone, S: Clone,
impl<K, V, S> Clone for IndexMap<K, V, S>where K: Clone, V: Clone, S: Clone,
impl<K, V, S, A> Clone for HashMap<K, V, S, A>where K: Clone, V: Clone, S: Clone, A: Allocator + Clone,
impl<Offset> Clone for UnitType<Offset>where Offset: Clone + ReaderOffset,
impl<P> Clone for Pin<P>where P: Clone,
impl<P: Clone> Clone for VMOffsets<P>
impl<P: Clone> Clone for VMOffsetsFields<P>
impl<R> Clone for CallFrameInstruction<R>where R: Clone + Reader,
impl<R> Clone for CfaRule<R>where R: Clone + Reader,
impl<R> Clone for RegisterRule<R>where R: Clone + Reader,
impl<R> Clone for RawLocListEntry<R>where R: Clone + Reader, <R as Reader>::Offset: Clone,
impl<R> Clone for DebugAbbrev<R>where R: Clone,
impl<R> Clone for DebugAddr<R>where R: Clone,
impl<R> Clone for ArangeEntryIter<R>where R: Clone + Reader,
impl<R> Clone for ArangeHeaderIter<R>where R: Clone + Reader, <R as Reader>::Offset: Clone,
impl<R> Clone for DebugAranges<R>where R: Clone,
impl<R> Clone for DebugFrame<R>where R: Clone + Reader,
impl<R> Clone for EhFrame<R>where R: Clone + Reader,
impl<R> Clone for EhFrameHdr<R>where R: Clone + Reader,
impl<R> Clone for ParsedEhFrameHdr<R>where R: Clone + Reader,
impl<R> Clone for DebugCuIndex<R>where R: Clone,
impl<R> Clone for DebugTuIndex<R>where R: Clone,
impl<R> Clone for UnitIndex<R>where R: Clone + Reader,
impl<R> Clone for DebugLine<R>where R: Clone,
impl<R> Clone for LineInstructions<R>where R: Clone + Reader,
impl<R> Clone for LineSequence<R>where R: Clone + Reader,
impl<R> Clone for DebugLoc<R>where R: Clone,
impl<R> Clone for DebugLocLists<R>where R: Clone,
impl<R> Clone for LocationListEntry<R>where R: Clone + Reader,
impl<R> Clone for LocationLists<R>where R: Clone,
impl<R> Clone for Expression<R>where R: Clone + Reader,
impl<R> Clone for OperationIter<R>where R: Clone + Reader,
impl<R> Clone for DebugPubNames<R>where R: Clone + Reader,
impl<R> Clone for PubNamesEntry<R>where R: Clone + Reader, <R as Reader>::Offset: Clone,
impl<R> Clone for PubNamesEntryIter<R>where R: Clone + Reader,
impl<R> Clone for DebugPubTypes<R>where R: Clone + Reader,
impl<R> Clone for PubTypesEntry<R>where R: Clone + Reader, <R as Reader>::Offset: Clone,
impl<R> Clone for PubTypesEntryIter<R>where R: Clone + Reader,
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> Clone for Attribute<R>where R: Clone + Reader,
impl<R> Clone for DebugInfo<R>where R: Clone,
impl<R> Clone for DebugInfoUnitHeadersIter<R>where R: Clone + Reader, <R as Reader>::Offset: Clone,
impl<R> Clone for DebugTypes<R>where R: Clone,
impl<R> Clone for DebugTypesUnitHeadersIter<R>where R: Clone + Reader, <R as Reader>::Offset: Clone,
impl<R, A> Clone for UnwindContext<R, A>where R: Clone + Reader, A: Clone + UnwindContextStorage<R>, <A as UnwindContextStorage<R>>::Stack: Clone,
impl<R, Offset> Clone for LineInstruction<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for gimli::read::op::Location<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for Operation<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for AttributeValue<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for ArangeHeader<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for CommonInformationEntry<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for FrameDescriptionEntry<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for CompleteLineProgram<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for FileEntry<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for IncompleteLineProgram<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for LineProgramHeader<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for Piece<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for UnitHeader<R, Offset>where R: Clone + Reader<Offset = Offset>, Offset: Clone + ReaderOffset,
impl<R, Program, Offset> Clone for LineRows<R, Program, Offset>where R: Clone + Reader<Offset = Offset>, Program: Clone + LineProgram<R, Offset>, Offset: Clone + ReaderOffset,
impl<R, S> Clone for UnwindTableRow<R, S>where R: Reader, S: UnwindContextStorage<R>,
impl<S> Clone for Host<S>where S: Clone,
impl<Section> Clone for SymbolFlags<Section>where Section: 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 TrySendError<T>where T: Clone,
impl<T> Clone for UnitSectionOffset<T>where T: Clone,
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!