Trait wasmtime_environ::__core::clone::Clone
1.0.0 · source · 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§
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.
Object Safety§
Implementors§
impl Clone for EngineOrModuleTypeIndex
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 TableElementExpression
impl Clone for TableInitialValue
impl Clone for TableSegmentElements
impl Clone for TableStyle
impl Clone for Trap
impl Clone for WasmHeapType
impl Clone for WasmValType
impl Clone for BlockType
impl Clone for CanonicalFunction
impl Clone for CanonicalOption
impl Clone for Catch
impl Clone for ComdatSymbolKind
impl Clone for ComponentExternalKind
impl Clone for ComponentOuterAliasKind
impl Clone for ComponentTypeRef
impl Clone for wasmtime_environ::wasmparser::ComponentValType
impl Clone for CompositeType
impl Clone for CoreDumpValue
impl Clone for wasmtime_environ::wasmparser::Encoding
impl Clone for ExternalKind
impl Clone for FrameKind
impl Clone for HeapType
impl Clone for InstantiationArgKind
impl Clone for OuterAliasKind
impl Clone for PrimitiveValType
impl Clone for StorageType
impl Clone for TagKind
impl Clone for TypeBounds
impl Clone for TypeRef
impl Clone for UnpackedIndex
impl Clone for ValType
impl Clone for AnyTypeId
impl Clone for ComponentAnyTypeId
impl Clone for ComponentCoreTypeId
impl Clone for wasmtime_environ::wasmparser::types::ComponentDefinedType
impl Clone for ComponentEntityType
impl Clone for wasmtime_environ::wasmparser::types::ComponentValType
impl Clone for CoreInstanceTypeKind
impl Clone for wasmtime_environ::wasmparser::types::EntityType
impl Clone for AsciiChar
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 wasmtime_environ::__core::net::SocketAddr
impl Clone for FpCategory
impl Clone for IntErrorKind
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 _Unwind_Action
impl Clone for _Unwind_Reason_Code
impl Clone for DwarfFileType
impl Clone for Format
impl Clone for gimli::common::SectionId
impl Clone for gimli::common::Vendor
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 gimli::write::cfi::CallFrameInstruction
impl Clone for ConvertError
impl Clone for Address
impl Clone for gimli::write::Error
impl Clone for Reference
impl Clone for LineString
impl Clone for gimli::write::loc::Location
impl Clone for gimli::write::range::Range
impl Clone for gimli::write::unit::AttributeValue
impl Clone for hashbrown::TryReserveError
impl Clone for Level
impl Clone for LevelFilter
impl Clone for Prefilter
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 object::common::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 Op
impl Clone for CDataModel
impl Clone for Size
impl Clone for 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 target_lexicon::targets::Vendor
impl Clone for X86_32Architecture
impl Clone for CallingConvention
impl Clone for target_lexicon::triple::Endianness
impl Clone for PointerWidth
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 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 FuncRefIndex
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 ModuleInternedTypeIndex
impl Clone for OwnedMemoryIndex
impl Clone for Setting
impl Clone for StaticMemoryInitializer
impl Clone for StaticModuleIndex
impl Clone for Table
impl Clone for TableIndex
impl Clone for TablePlan
impl Clone for TableSegment
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 WasmRefType
impl Clone for wasmtime_environ::wasmparser::names::ComponentName
impl Clone for KebabString
impl Clone for ArrayType
impl Clone for BinaryReaderError
impl Clone for BranchHint
impl Clone for ComdatSymbol
impl Clone for ComponentStartFunction
impl Clone for DefinedDataSymbol
impl Clone for FieldType
impl Clone for Frame
impl Clone for FuncType
impl Clone for GlobalType
impl Clone for Ieee32
impl Clone for Ieee64
impl Clone for InitFunc
impl Clone for MemArg
impl Clone for MemInfo
impl Clone for MemoryType
impl Clone for PackedIndex
impl Clone for Parser
impl Clone for RecGroup
impl Clone for RefType
impl Clone for wasmtime_environ::wasmparser::SegmentFlags
impl Clone for StructType
impl Clone for SubType
impl Clone for wasmtime_environ::wasmparser::SymbolFlags
impl Clone for TableType
impl Clone for TagType
impl Clone for TryTable
impl Clone for V128
impl Clone for WasmFeatures
impl Clone for AliasableResourceId
impl Clone for ComponentCoreInstanceTypeId
impl Clone for ComponentCoreModuleTypeId
impl Clone for ComponentDefinedTypeId
impl Clone for wasmtime_environ::wasmparser::types::ComponentFuncType
impl Clone for ComponentFuncTypeId
impl Clone for ComponentInstanceType
impl Clone for ComponentInstanceTypeId
impl Clone for wasmtime_environ::wasmparser::types::ComponentType
impl Clone for ComponentTypeId
impl Clone for ComponentValueTypeId
impl Clone for CoreTypeId
impl Clone for InstanceType
impl Clone for wasmtime_environ::wasmparser::types::ModuleType
impl Clone for RecGroupId
impl Clone for RecordType
impl Clone for ResourceId
impl Clone for TupleType
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 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 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 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 LocalWaker
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>
impl Clone for Box<CStr>
impl Clone for Box<OsStr>
impl Clone for Box<Path>
impl Clone for UnorderedKeyError
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 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 DefaultHasher
impl Clone for std::hash::random::RandomState
impl Clone for std::io::util::Empty
impl Clone for Sink
impl Clone for stat
impl Clone for std::os::unix::net::addr::SocketAddr
impl Clone for SocketCred
impl Clone for UCred
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 AHasher
impl Clone for ahash::random_state::RandomState
impl Clone for bincode::config::endian::BigEndian
impl Clone for bincode::config::endian::LittleEndian
impl Clone for NativeEndian
impl Clone for FixintEncoding
impl Clone for VarintEncoding
impl Clone for Config
impl Clone for Bounded
impl Clone for Infinite
impl Clone for DefaultOptions
impl Clone for AllowTrailing
impl Clone for RejectTrailing
impl Clone for AArch64
impl Clone for Arm
impl Clone for LoongArch
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 gimli::read::line::LineRow
impl Clone for ReaderOffsetId
impl Clone for gimli::read::rnglists::Range
impl Clone for StoreOnHeap
impl Clone for CieId
impl Clone for gimli::write::cfi::CommonInformationEntry
impl Clone for gimli::write::cfi::FrameDescriptionEntry
impl Clone for FileId
impl Clone for DirectoryId
impl Clone for FileInfo
impl Clone for LineProgram
impl Clone for gimli::write::line::LineRow
impl Clone for LocationList
impl Clone for LocationListId
impl Clone for gimli::write::op::Expression
impl Clone for RangeList
impl Clone for RangeListId
impl Clone for LineStringId
impl Clone for gimli::write::str::StringId
impl Clone for gimli::write::unit::Attribute
impl Clone for UnitEntryId
impl Clone for UnitId
impl Clone for InitialLengthOffset
impl Clone for indexmap::TryReserveError
impl Clone for FinderBuilder
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 object::write::string::StringId
impl Clone for ComdatId
impl Clone for object::write::Error
impl Clone for object::write::SectionId
impl Clone for SymbolId
impl Clone for BuildMetadata
impl Clone for Comparator
impl Clone for Prerelease
impl Clone for semver::Version
impl Clone for VersionReq
impl Clone for IgnoredAny
impl Clone for serde::de::value::Error
impl Clone for DefaultToHost
impl Clone for DefaultToUnknown
impl Clone for Triple
impl Clone for f16
impl Clone for f128
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 wasmtime_environ::wasmparser::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 Linking<'a>
impl<'a> Clone for ModuleTypeDeclaration<'a>
impl<'a> Clone for Name<'a>
impl<'a> Clone for Operator<'a>
impl<'a> Clone for SymbolInfo<'a>
impl<'a> Clone for ComponentNameKind<'a>
impl<'a> Clone for Component<'a>
impl<'a> Clone for Prefix<'a>
impl<'a> Clone for Unexpected<'a>
impl<'a> Clone for DependencyName<'a>
impl<'a> Clone for HashName<'a>
impl<'a> Clone for InterfaceName<'a>
impl<'a> Clone for ResourceFunc<'a>
impl<'a> Clone for UrlName<'a>
impl<'a> Clone for BinaryReader<'a>
impl<'a> Clone for BrTable<'a>
impl<'a> Clone for BranchHintFunction<'a>
impl<'a> Clone for Comdat<'a>
impl<'a> Clone for ComponentExport<'a>
impl<'a> Clone for ComponentExportName<'a>
impl<'a> Clone for wasmtime_environ::wasmparser::ComponentFuncType<'a>
impl<'a> Clone for ComponentImport<'a>
impl<'a> Clone for ComponentImportName<'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 LinkingSectionReader<'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 Segment<'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 wasmtime_environ::__core::ffi::c_str::Bytes<'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 anyhow::Chain<'a>
impl<'a> Clone for log::Metadata<'a>
impl<'a> Clone for Record<'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>
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 wasmtime_environ::__core::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 wasmtime_environ::__core::str::Split<'a, P>
impl<'a, P> Clone for wasmtime_environ::__core::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, R> Clone for ReadCacheRange<'a, R>
impl<'a, T> Clone for RChunksExact<'a, T>
impl<'a, T> Clone for Ptr<'a, T>where
T: ?Sized,
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>
impl<'abbrev, 'unit, R> Clone for EntriesCursor<'abbrev, 'unit, R>
impl<'abbrev, 'unit, R> Clone for EntriesRaw<'abbrev, 'unit, R>
impl<'abbrev, 'unit, R> Clone for EntriesTree<'abbrev, 'unit, R>
impl<'abbrev, 'unit, R, Offset> Clone for DebuggingInformationEntry<'abbrev, 'unit, R, Offset>
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<'data> Clone for AttributeIndexIterator<'data>
impl<'data> Clone for AttributeReader<'data>
impl<'data> Clone for AttributesSubsubsection<'data>
impl<'data> Clone for object::read::elf::version::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
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>
impl<'data, Elf> Clone for AttributesSection<'data, Elf>
impl<'data, Elf> Clone for AttributesSubsection<'data, Elf>
impl<'data, Elf> Clone for AttributesSubsectionIterator<'data, Elf>
impl<'data, Elf> Clone for AttributesSubsubsectionIterator<'data, Elf>
impl<'data, Elf> Clone for VerdauxIterator<'data, Elf>
impl<'data, Elf> Clone for VerdefIterator<'data, Elf>
impl<'data, Elf> Clone for VernauxIterator<'data, Elf>
impl<'data, Elf> Clone for VerneedIterator<'data, Elf>
impl<'data, Elf> Clone for VersionTable<'data, Elf>
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,
<Elf as FileHeader>::Endian: Clone,
impl<'data, R> Clone for StringTable<'data, R>
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>
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, R> Clone for RegisterRuleIter<'iter, R>
impl<'n> Clone for Finder<'n>
impl<'n> Clone for FinderRev<'n>
impl<A> Clone for Repeat<A>where
A: Clone,
impl<A> Clone for RepeatN<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 EnumAccessDeserializer<A>where
A: Clone,
impl<A> Clone for MapAccessDeserializer<A>where
A: Clone,
impl<A> Clone for SeqAccessDeserializer<A>where
A: Clone,
impl<A, B> Clone for wasmtime_environ::__core::iter::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<E> Clone for CompressionHeader32<E>
impl<E> Clone for CompressionHeader64<E>
impl<E> Clone for Dyn32<E>
impl<E> Clone for Dyn64<E>
impl<E> Clone for FileHeader32<E>
impl<E> Clone for FileHeader64<E>
impl<E> Clone for GnuHashHeader<E>
impl<E> Clone for HashHeader<E>
impl<E> Clone for NoteHeader32<E>
impl<E> Clone for NoteHeader64<E>
impl<E> Clone for ProgramHeader32<E>
impl<E> Clone for ProgramHeader64<E>
impl<E> Clone for Rel32<E>
impl<E> Clone for Rel64<E>
impl<E> Clone for Rela32<E>
impl<E> Clone for Rela64<E>
impl<E> Clone for SectionHeader32<E>
impl<E> Clone for SectionHeader64<E>
impl<E> Clone for Sym32<E>
impl<E> Clone for Sym64<E>
impl<E> Clone for Syminfo32<E>
impl<E> Clone for Syminfo64<E>
impl<E> Clone for Verdaux<E>
impl<E> Clone for object::elf::Verdef<E>
impl<E> Clone for object::elf::Vernaux<E>
impl<E> Clone for object::elf::Verneed<E>
impl<E> Clone for Versym<E>
impl<E> Clone for I16<E>
impl<E> Clone for I32<E>
impl<E> Clone for I64<E>
impl<E> Clone for U16<E>
impl<E> Clone for U32<E>
impl<E> Clone for U64<E>
impl<E> Clone for I16Bytes<E>
impl<E> Clone for I32Bytes<E>
impl<E> Clone for I64Bytes<E>
impl<E> Clone for U16Bytes<E>
impl<E> Clone for U32Bytes<E>
impl<E> Clone for U64Bytes<E>
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<Endian> Clone for EndianVec<Endian>
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>
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, E> Clone for SeqDeserializer<I, E>
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 wasmtime_environ::__core::iter::ArrayChunks<I, N>
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>
impl<K> Clone for std::collections::hash::set::Iter<'_, K>
impl<K> Clone for hashbrown::set::Iter<'_, K>
impl<K, V> Clone for BoxedSlice<K, V>
impl<K, V> Clone for PrimaryMap<K, V>
impl<K, V> Clone for SecondaryMap<K, V>
impl<K, V> Clone for Box<Slice<K, V>>
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 hashbrown::map::Iter<'_, K, V>
impl<K, V> Clone for hashbrown::map::Keys<'_, K, V>
impl<K, V> Clone for hashbrown::map::Values<'_, K, V>
impl<K, V> Clone for indexmap::map::iter::Iter<'_, K, V>
impl<K, V> Clone for indexmap::map::iter::Keys<'_, K, V>
impl<K, V> Clone for indexmap::map::iter::Values<'_, K, V>
impl<K, V, A> Clone for BTreeMap<K, V, A>
impl<K, V, S> Clone for std::collections::hash::map::HashMap<K, V, S>
impl<K, V, S> Clone for IndexMap<K, V, S>
impl<K, V, S, A> Clone for hashbrown::map::HashMap<K, V, S, A>
impl<O, E> Clone for WithOtherEndian<O, E>
impl<O, I> Clone for WithOtherIntEncoding<O, I>
impl<O, L> Clone for WithOtherLimit<O, L>
impl<O, T> Clone for WithOtherTrailing<O, T>
impl<Offset> Clone for UnitType<Offset>where
Offset: Clone + ReaderOffset,
impl<P: Clone> Clone for VMOffsets<P>
impl<P: Clone> Clone for VMOffsetsFields<P>
impl<Ptr> Clone for Pin<Ptr>where
Ptr: Clone,
impl<R> Clone for gimli::read::cfi::CallFrameInstruction<R>
impl<R> Clone for CfaRule<R>
impl<R> Clone for RegisterRule<R>
impl<R> Clone for RawLocListEntry<R>
impl<R> Clone for DebugAbbrev<R>where
R: Clone,
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 DebugLine<R>where
R: Clone,
impl<R> Clone for LineInstructions<R>
impl<R> Clone for LineSequence<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 gimli::read::op::Expression<R>
impl<R> Clone for OperationIter<R>
impl<R> Clone for DebugPubNames<R>
impl<R> Clone for PubNamesEntry<R>
impl<R> Clone for PubNamesEntryIter<R>
impl<R> Clone for DebugPubTypes<R>
impl<R> Clone for PubTypesEntry<R>
impl<R> Clone for PubTypesEntryIter<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> Clone for gimli::read::unit::Attribute<R>
impl<R> Clone for DebugInfo<R>where
R: Clone,
impl<R> Clone for DebugInfoUnitHeadersIter<R>
impl<R> Clone for DebugTypes<R>where
R: Clone,
impl<R> Clone for DebugTypesUnitHeadersIter<R>
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>
impl<R, Offset> Clone for gimli::read::op::Location<R, Offset>
impl<R, Offset> Clone for Operation<R, Offset>
impl<R, Offset> Clone for gimli::read::unit::AttributeValue<R, Offset>
impl<R, Offset> Clone for ArangeHeader<R, Offset>
impl<R, Offset> Clone for gimli::read::cfi::CommonInformationEntry<R, Offset>
impl<R, Offset> Clone for gimli::read::cfi::FrameDescriptionEntry<R, Offset>
impl<R, Offset> Clone for CompleteLineProgram<R, Offset>
impl<R, Offset> Clone for FileEntry<R, Offset>
impl<R, Offset> Clone for IncompleteLineProgram<R, Offset>
impl<R, Offset> Clone for LineProgramHeader<R, Offset>
impl<R, Offset> Clone for Piece<R, Offset>
impl<R, Offset> Clone for UnitHeader<R, Offset>
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<Section, Symbol> Clone for object::common::SymbolFlags<Section, Symbol>
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!