wasmtime_environ::__core::prelude::v1

Trait Copy

1.6.0 · Source
pub trait Copy: Clone { }
Expand description

Types whose values can be duplicated simply by copying bits.

By default, variable bindings have ‘move semantics.’ In other words:

#[derive(Debug)]
struct Foo;

let x = Foo;

let y = x;

// `x` has moved into `y`, and so cannot be used

// println!("{x:?}"); // error: use of moved value

However, if a type implements Copy, it instead has ‘copy semantics’:

// We can derive a `Copy` implementation. `Clone` is also required, as it's
// a supertrait of `Copy`.
#[derive(Debug, Copy, Clone)]
struct Foo;

let x = Foo;

let y = x;

// `y` is a copy of `x`

println!("{x:?}"); // A-OK!

It’s important to note that in these two examples, the only difference is whether you are allowed to access x after the assignment. Under the hood, both a copy and a move can result in bits being copied in memory, although this is sometimes optimized away.

§How can I implement Copy?

There are two ways to implement Copy on your type. The simplest is to use derive:

#[derive(Copy, Clone)]
struct MyStruct;

You can also implement Copy and Clone manually:

struct MyStruct;

impl Copy for MyStruct { }

impl Clone for MyStruct {
    fn clone(&self) -> MyStruct {
        *self
    }
}

There is a small difference between the two. The derive strategy will also place a Copy bound on type parameters:

#[derive(Clone)]
struct MyStruct<T>(T);

impl<T: Copy> Copy for MyStruct<T> { }

This isn’t always desired. For example, shared references (&T) can be copied regardless of whether T is Copy. Likewise, a generic struct containing markers such as PhantomData could potentially be duplicated with a bit-wise copy.

§What’s the difference between Copy and Clone?

Copies happen implicitly, for example as part of an assignment y = x. The behavior of Copy is not overloadable; it is always a simple bit-wise copy.

Cloning is an explicit action, x.clone(). The implementation of Clone can provide any type-specific behavior necessary to duplicate values safely. For example, the implementation of Clone for String needs to copy the pointed-to string buffer in the heap. A simple bitwise copy of String values would merely copy the pointer, leading to a double free down the line. For this reason, String is Clone but not Copy.

Clone is a supertrait of Copy, so everything which is Copy must also implement Clone. If a type is Copy then its Clone implementation only needs to return *self (see the example above).

§When can my type be Copy?

A type can implement Copy if all of its components implement Copy. For example, this struct can be Copy:

#[derive(Copy, Clone)]
struct Point {
   x: i32,
   y: i32,
}

A struct can be Copy, and i32 is Copy, therefore Point is eligible to be Copy. By contrast, consider

struct PointList {
    points: Vec<Point>,
}

The struct PointList cannot implement Copy, because Vec<T> is not Copy. If we attempt to derive a Copy implementation, we’ll get an error:

the trait `Copy` cannot be implemented for this type; field `points` does not implement `Copy`

Shared references (&T) are also Copy, so a type can be Copy, even when it holds shared references of types T that are not Copy. Consider the following struct, which can implement Copy, because it only holds a shared reference to our non-Copy type PointList from above:

#[derive(Copy, Clone)]
struct PointListWrapper<'a> {
    point_list_ref: &'a PointList,
}

§When can’t my type be Copy?

Some types can’t be copied safely. For example, copying &mut T would create an aliased mutable reference. Copying String would duplicate responsibility for managing the String’s buffer, leading to a double free.

Generalizing the latter case, any type implementing Drop can’t be Copy, because it’s managing some resource besides its own size_of::<T> bytes.

If you try to implement Copy on a struct or enum containing non-Copy data, you will get the error E0204.

§When should my type be Copy?

Generally speaking, if your type can implement Copy, it should. Keep in mind, though, that implementing Copy is part of the public API of your type. If the type might become non-Copy in the future, it could be prudent to omit the Copy implementation now, to avoid a breaking API change.

§Additional implementors

In addition to the implementors listed below, the following types also implement Copy:

  • 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 Copy themselves. Note that variables captured by shared reference always implement Copy (even if the referent doesn’t), while variables captured by mutable reference never implement Copy.

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§

Source§

impl Copy for ComponentItem

Source§

impl Copy for FixedEncoding

Source§

impl Copy for FlatType

Source§

impl Copy for InterfaceType

Source§

impl Copy for StringEncoding

Source§

impl Copy for Transcode

Source§

impl Copy for TypeDef

Source§

impl Copy for Collector

Source§

impl Copy for ConstOp

Source§

impl Copy for EngineOrModuleTypeIndex

Source§

impl Copy for EntityIndex

Source§

impl Copy for IndexType

Source§

impl Copy for wasmtime_environ::RelocationTarget

Source§

impl Copy for SettingKind

Source§

impl Copy for Trap

Source§

impl Copy for VMGcKind

Source§

impl Copy for WasmHeapBottomType

Source§

impl Copy for WasmHeapTopType

Source§

impl Copy for WasmHeapType

Source§

impl Copy for WasmStorageType

Source§

impl Copy for WasmValType

Source§

impl Copy for LibCall

Source§

impl Copy for AsciiChar

1.0.0 · Source§

impl Copy for wasmtime_environ::__core::cmp::Ordering

1.34.0 · Source§

impl Copy for Infallible

1.28.0 · Source§

impl Copy for wasmtime_environ::__core::fmt::Alignment

1.7.0 · Source§

impl Copy for IpAddr

Source§

impl Copy for Ipv6MulticastScope

1.0.0 · Source§

impl Copy for SocketAddr

1.0.0 · Source§

impl Copy for FpCategory

Source§

impl Copy for SearchStep

1.0.0 · Source§

impl Copy for wasmtime_environ::__core::sync::atomic::Ordering

1.0.0 · Source§

impl Copy for std::io::SeekFrom

1.0.0 · Source§

impl Copy for std::io::error::ErrorKind

1.0.0 · Source§

impl Copy for Shutdown

Source§

impl Copy for BacktraceStyle

1.12.0 · Source§

impl Copy for RecvTimeoutError

1.0.0 · Source§

impl Copy for TryRecvError

Source§

impl Copy for _Unwind_Action

Source§

impl Copy for _Unwind_Reason_Code

Source§

impl Copy for DemangleNodeType

Source§

impl Copy for cpp_demangle::error::Error

Source§

impl Copy for embedded_io::ErrorKind

Source§

impl Copy for embedded_io::SeekFrom

Source§

impl Copy for DwarfFileType

Source§

impl Copy for Format

Source§

impl Copy for gimli::common::SectionId

Source§

impl Copy for Vendor

Source§

impl Copy for RunTimeEndian

Source§

impl Copy for AbbreviationsCacheStrategy

Source§

impl Copy for Pointer

Source§

impl Copy for gimli::read::Error

Source§

impl Copy for IndexSectionId

Source§

impl Copy for ColumnType

Source§

impl Copy for Value

Source§

impl Copy for ValueType

Source§

impl Copy for ConvertError

Source§

impl Copy for Address

Source§

impl Copy for gimli::write::Error

Source§

impl Copy for Reference

Source§

impl Copy for gimli::write::relocate::RelocationTarget

Source§

impl Copy for Level

Source§

impl Copy for LevelFilter

Source§

impl Copy for Prefilter

Source§

impl Copy for AddressSize

Source§

impl Copy for object::common::Architecture

Source§

impl Copy for object::common::BinaryFormat

Source§

impl Copy for ComdatKind

Source§

impl Copy for FileFlags

Source§

impl Copy for RelocationEncoding

Source§

impl Copy for RelocationFlags

Source§

impl Copy for RelocationKind

Source§

impl Copy for SectionFlags

Source§

impl Copy for SectionKind

Source§

impl Copy for object::common::SegmentFlags

Source§

impl Copy for SubArchitecture

Source§

impl Copy for SymbolKind

Source§

impl Copy for SymbolScope

Source§

impl Copy for object::endian::Endianness

Source§

impl Copy for CompressionFormat

Source§

impl Copy for FileKind

Source§

impl Copy for ObjectKind

Source§

impl Copy for object::read::RelocationTarget

Source§

impl Copy for object::read::SymbolSection

Source§

impl Copy for Mangling

Source§

impl Copy for StandardSection

Source§

impl Copy for StandardSegment

Source§

impl Copy for object::write::SymbolSection

Source§

impl Copy for Op

Source§

impl Copy for CDataModel

Source§

impl Copy for Size

Source§

impl Copy for Aarch64Architecture

Source§

impl Copy for target_lexicon::targets::Architecture

Source§

impl Copy for ArmArchitecture

Source§

impl Copy for target_lexicon::targets::BinaryFormat

Source§

impl Copy for Environment

Source§

impl Copy for Mips32Architecture

Source§

impl Copy for Mips64Architecture

Source§

impl Copy for OperatingSystem

Source§

impl Copy for Riscv32Architecture

Source§

impl Copy for Riscv64Architecture

Source§

impl Copy for X86_32Architecture

Source§

impl Copy for CallingConvention

Source§

impl Copy for target_lexicon::triple::Endianness

Source§

impl Copy for PointerWidth

Source§

impl Copy for Color

Source§

impl Copy for ColorChoice

Source§

impl Copy for wasm_encoder::component::aliases::ComponentOuterAliasKind

Source§

impl Copy for wasm_encoder::component::canonicals::CanonicalOption

Source§

impl Copy for ComponentSectionId

Source§

impl Copy for ComponentExportKind

Source§

impl Copy for wasm_encoder::component::imports::ComponentTypeRef

Source§

impl Copy for wasm_encoder::component::imports::TypeBounds

Source§

impl Copy for ModuleArg

Source§

impl Copy for wasm_encoder::component::types::ComponentValType

Source§

impl Copy for wasm_encoder::component::types::PrimitiveValType

Source§

impl Copy for wasm_encoder::core::code::BlockType

Source§

impl Copy for wasm_encoder::core::code::Ordering

Source§

impl Copy for wasm_encoder::core::SectionId

Source§

impl Copy for ExportKind

Source§

impl Copy for wasm_encoder::core::imports::EntityType

Source§

impl Copy for wasm_encoder::core::tags::TagKind

Source§

impl Copy for wasm_encoder::core::types::AbstractHeapType

Source§

impl Copy for wasm_encoder::core::types::HeapType

Source§

impl Copy for wasm_encoder::core::types::StorageType

Source§

impl Copy for wasm_encoder::core::types::ValType

Source§

impl Copy for wasmparser::parser::Encoding

Source§

impl Copy for wasmparser::readers::component::aliases::ComponentOuterAliasKind

Source§

impl Copy for wasmparser::readers::component::canonicals::CanonicalOption

Source§

impl Copy for ComponentExternalKind

Source§

impl Copy for wasmparser::readers::component::imports::ComponentTypeRef

Source§

impl Copy for wasmparser::readers::component::imports::TypeBounds

Source§

impl Copy for InstantiationArgKind

Source§

impl Copy for wasmparser::readers::component::types::ComponentValType

Source§

impl Copy for OuterAliasKind

Source§

impl Copy for wasmparser::readers::component::types::PrimitiveValType

Source§

impl Copy for ExternalKind

Source§

impl Copy for TypeRef

Source§

impl Copy for ComdatSymbolKind

Source§

impl Copy for wasmparser::readers::core::operators::BlockType

Source§

impl Copy for Catch

Source§

impl Copy for FrameKind

Source§

impl Copy for Handle

Source§

impl Copy for wasmparser::readers::core::operators::Ordering

Source§

impl Copy for RelocAddendKind

Source§

impl Copy for RelocationType

Source§

impl Copy for wasmparser::readers::core::types::AbstractHeapType

Source§

impl Copy for wasmparser::readers::core::types::HeapType

Source§

impl Copy for wasmparser::readers::core::types::StorageType

Source§

impl Copy for wasmparser::readers::core::types::TagKind

Source§

impl Copy for UnpackedIndex

Source§

impl Copy for wasmparser::readers::core::types::ValType

Source§

impl Copy for AnyTypeId

Source§

impl Copy for ComponentAnyTypeId

Source§

impl Copy for ComponentCoreTypeId

Source§

impl Copy for ComponentEntityType

Source§

impl Copy for wasmparser::validator::component_types::ComponentValType

Source§

impl Copy for wasmparser::validator::types::EntityType

Source§

impl Copy for DiscriminantSize

1.0.0 · Source§

impl Copy for bool

1.0.0 · Source§

impl Copy for char

1.0.0 · Source§

impl Copy for f16

1.0.0 · Source§

impl Copy for f32

1.0.0 · Source§

impl Copy for f64

1.0.0 · Source§

impl Copy for f128

1.0.0 · Source§

impl Copy for i8

1.0.0 · Source§

impl Copy for i16

1.0.0 · Source§

impl Copy for i32

1.0.0 · Source§

impl Copy for i64

1.0.0 · Source§

impl Copy for i128

1.0.0 · Source§

impl Copy for isize

Source§

impl Copy for !

1.0.0 · Source§

impl Copy for u8

1.0.0 · Source§

impl Copy for u16

1.0.0 · Source§

impl Copy for u32

1.0.0 · Source§

impl Copy for u64

1.0.0 · Source§

impl Copy for u128

1.0.0 · Source§

impl Copy for usize

Source§

impl Copy for AdapterId

Source§

impl Copy for AdapterModuleId

Source§

impl Copy for InstanceId

Source§

impl Copy for MemoryId

Source§

impl Copy for PostReturnId

Source§

impl Copy for ReallocId

Source§

impl Copy for ComponentFuncIndex

Source§

impl Copy for ComponentIndex

Source§

impl Copy for ComponentInstanceIndex

Source§

impl Copy for ComponentTypeIndex

Source§

impl Copy for ComponentUpvarIndex

Source§

impl Copy for DefinedResourceIndex

Source§

impl Copy for ExportIndex

Source§

impl Copy for ImportIndex

Source§

impl Copy for LoweredIndex

Source§

impl Copy for ModuleIndex

Source§

impl Copy for ModuleInstanceIndex

Source§

impl Copy for ModuleUpvarIndex

Source§

impl Copy for ResourceIndex

Source§

impl Copy for RuntimeComponentInstanceIndex

Source§

impl Copy for RuntimeImportIndex

Source§

impl Copy for RuntimeInstanceIndex

Source§

impl Copy for RuntimeMemoryIndex

Source§

impl Copy for RuntimePostReturnIndex

Source§

impl Copy for RuntimeReallocIndex

Source§

impl Copy for StaticComponentIndex

Source§

impl Copy for TrampolineIndex

Source§

impl Copy for TypeComponentIndex

Source§

impl Copy for TypeComponentInstanceIndex

Source§

impl Copy for TypeEnumIndex

Source§

impl Copy for TypeFlagsIndex

Source§

impl Copy for TypeFuncIndex

Source§

impl Copy for TypeListIndex

Source§

impl Copy for TypeModuleIndex

Source§

impl Copy for TypeOptionIndex

Source§

impl Copy for TypeRecordIndex

Source§

impl Copy for TypeResourceTableIndex

Source§

impl Copy for TypeResultIndex

Source§

impl Copy for TypeTupleIndex

Source§

impl Copy for TypeVariantIndex

Source§

impl Copy for BuiltinFunctionIndex

Source§

impl Copy for DataIndex

Source§

impl Copy for DefinedFuncIndex

Source§

impl Copy for DefinedGlobalIndex

Source§

impl Copy for DefinedMemoryIndex

Source§

impl Copy for DefinedTableIndex

Source§

impl Copy for ElemIndex

Source§

impl Copy for EngineInternedRecGroupIndex

Source§

impl Copy for FilePos

Source§

impl Copy for FuncIndex

Source§

impl Copy for FuncRefIndex

Source§

impl Copy for FunctionLoc

Source§

impl Copy for wasmtime_environ::Global

Source§

impl Copy for GlobalIndex

Source§

impl Copy for HostPtr

Source§

impl Copy for Limits

Source§

impl Copy for Memory

Source§

impl Copy for MemoryIndex

Source§

impl Copy for ModuleInternedRecGroupIndex

Source§

impl Copy for ModuleInternedTypeIndex

Source§

impl Copy for OwnedMemoryIndex

Source§

impl Copy for RecGroupRelativeTypeIndex

Source§

impl Copy for Setting

Source§

impl Copy for SizeOverflow

Source§

impl Copy for StaticModuleIndex

Source§

impl Copy for Table

Source§

impl Copy for TableIndex

Source§

impl Copy for Tag

Source§

impl Copy for TagIndex

Source§

impl Copy for TypeIndex

Source§

impl Copy for VMSharedTypeIndex

Source§

impl Copy for WasmRefType

Source§

impl Copy for AllocError

1.28.0 · Source§

impl Copy for Layout

1.0.0 · Source§

impl Copy for TypeId

1.27.0 · Source§

impl Copy for CpuidResult

1.27.0 · Source§

impl Copy for __m128

Source§

impl Copy for __m128bh

1.27.0 · Source§

impl Copy for __m128d

Source§

impl Copy for __m128h

1.27.0 · Source§

impl Copy for __m128i

1.27.0 · Source§

impl Copy for __m256

Source§

impl Copy for __m256bh

1.27.0 · Source§

impl Copy for __m256d

Source§

impl Copy for __m256h

1.27.0 · Source§

impl Copy for __m256i

1.72.0 · Source§

impl Copy for __m512

Source§

impl Copy for __m512bh

1.72.0 · Source§

impl Copy for __m512d

Source§

impl Copy for __m512h

1.72.0 · Source§

impl Copy for __m512i

Source§

impl Copy for bf16

1.34.0 · Source§

impl Copy for TryFromSliceError

1.34.0 · Source§

impl Copy for CharTryFromError

1.59.0 · Source§

impl Copy for TryFromCharError

1.0.0 · Source§

impl Copy for wasmtime_environ::__core::fmt::Error

1.33.0 · Source§

impl Copy for PhantomPinned

Source§

impl Copy for Assume

1.0.0 · Source§

impl Copy for Ipv4Addr

1.0.0 · Source§

impl Copy for Ipv6Addr

1.0.0 · Source§

impl Copy for SocketAddrV4

1.0.0 · Source§

impl Copy for SocketAddrV6

1.34.0 · Source§

impl Copy for TryFromIntError

Source§

impl Copy for wasmtime_environ::__core::ptr::Alignment

1.0.0 · Source§

impl Copy for RangeFull

1.0.0 · Source§

impl Copy for Utf8Error

1.36.0 · Source§

impl Copy for RawWakerVTable

1.3.0 · Source§

impl Copy for Duration

Source§

impl Copy for alloc::alloc::Global

1.28.0 · Source§

impl Copy for System

1.75.0 · Source§

impl Copy for FileTimes

1.1.0 · Source§

impl Copy for FileType

1.0.0 · Source§

impl Copy for Empty

1.0.0 · Source§

impl Copy for Sink

Source§

impl Copy for UCred

1.61.0 · Source§

impl Copy for ExitCode

1.0.0 · Source§

impl Copy for ExitStatus

Source§

impl Copy for ExitStatusError

Source§

impl Copy for DefaultRandomSource

1.5.0 · Source§

impl Copy for WaitTimeoutResult

1.0.0 · Source§

impl Copy for RecvError

1.26.0 · Source§

impl Copy for AccessError

1.19.0 · Source§

impl Copy for ThreadId

1.8.0 · Source§

impl Copy for Instant

1.8.0 · Source§

impl Copy for SystemTime

Source§

impl Copy for DemangleOptions

Source§

impl Copy for ParseOptions

Source§

impl Copy for AArch64

Source§

impl Copy for Arm

Source§

impl Copy for LoongArch

Source§

impl Copy for MIPS

Source§

impl Copy for PowerPc64

Source§

impl Copy for RiscV

Source§

impl Copy for X86

Source§

impl Copy for X86_64

Source§

impl Copy for DebugTypeSignature

Source§

impl Copy for DwoId

Source§

impl Copy for gimli::common::Encoding

Source§

impl Copy for LineEncoding

Source§

impl Copy for Register

Source§

impl Copy for DwAccess

Source§

impl Copy for DwAddr

Source§

impl Copy for DwAt

Source§

impl Copy for DwAte

Source§

impl Copy for DwCc

Source§

impl Copy for DwCfa

Source§

impl Copy for DwChildren

Source§

impl Copy for DwDefaulted

Source§

impl Copy for DwDs

Source§

impl Copy for DwDsc

Source§

impl Copy for DwEhPe

Source§

impl Copy for DwEnd

Source§

impl Copy for DwForm

Source§

impl Copy for DwId

Source§

impl Copy for DwIdx

Source§

impl Copy for DwInl

Source§

impl Copy for DwLang

Source§

impl Copy for DwLle

Source§

impl Copy for DwLnct

Source§

impl Copy for DwLne

Source§

impl Copy for DwLns

Source§

impl Copy for DwMacro

Source§

impl Copy for DwOp

Source§

impl Copy for DwOrd

Source§

impl Copy for DwRle

Source§

impl Copy for DwSect

Source§

impl Copy for DwSectV2

Source§

impl Copy for DwTag

Source§

impl Copy for DwUt

Source§

impl Copy for DwVirtuality

Source§

impl Copy for DwVis

Source§

impl Copy for gimli::endianity::BigEndian

Source§

impl Copy for gimli::endianity::LittleEndian

Source§

impl Copy for AttributeSpecification

Source§

impl Copy for Augmentation

Source§

impl Copy for UnitIndexSection

Source§

impl Copy for FileEntryFormat

Source§

impl Copy for gimli::read::line::LineRow

Source§

impl Copy for ReaderOffsetId

Source§

impl Copy for gimli::read::rnglists::Range

Source§

impl Copy for StoreOnHeap

Source§

impl Copy for CieId

Source§

impl Copy for FileId

Source§

impl Copy for DirectoryId

Source§

impl Copy for gimli::write::line::LineRow

Source§

impl Copy for LocationListId

Source§

impl Copy for RangeListId

Source§

impl Copy for Relocation

Source§

impl Copy for LineStringId

Source§

impl Copy for gimli::write::str::StringId

Source§

impl Copy for UnitEntryId

Source§

impl Copy for UnitId

Source§

impl Copy for InitialLengthOffset

Source§

impl Copy for Ident

Source§

impl Copy for object::endian::BigEndian

Source§

impl Copy for object::endian::LittleEndian

Source§

impl Copy for VersionIndex

Source§

impl Copy for CompressedFileRange

Source§

impl Copy for object::read::Error

Source§

impl Copy for object::read::SectionIndex

Source§

impl Copy for object::read::SymbolIndex

Source§

impl Copy for Class

Source§

impl Copy for object::write::elf::writer::SectionIndex

Source§

impl Copy for object::write::elf::writer::SymbolIndex

Source§

impl Copy for object::write::string::StringId

Source§

impl Copy for ComdatId

Source§

impl Copy for object::write::SectionId

Source§

impl Copy for SymbolId

Source§

impl Copy for IgnoredAny

Source§

impl Copy for wasm_encoder::core::branch_hints::BranchHint

Source§

impl Copy for wasm_encoder::core::code::MemArg

Source§

impl Copy for DataCountSection

Source§

impl Copy for wasm_encoder::core::globals::GlobalType

Source§

impl Copy for wasm_encoder::core::memories::MemoryType

Source§

impl Copy for StartSection

Source§

impl Copy for wasm_encoder::core::tables::TableType

Source§

impl Copy for wasm_encoder::core::tags::TagType

Source§

impl Copy for wasm_encoder::core::types::ArrayType

Source§

impl Copy for ContType

Source§

impl Copy for wasm_encoder::core::types::FieldType

Source§

impl Copy for wasm_encoder::core::types::RefType

Source§

impl Copy for WasmFeatures

Source§

impl Copy for wasmparser::readers::core::branch_hinting::BranchHint

Source§

impl Copy for MemInfo

Source§

impl Copy for ComdatSymbol

Source§

impl Copy for DefinedDataSymbol

Source§

impl Copy for InitFunc

Source§

impl Copy for wasmparser::readers::core::linking::SegmentFlags

Source§

impl Copy for wasmparser::readers::core::linking::SymbolFlags

Source§

impl Copy for Ieee32

Source§

impl Copy for Ieee64

Source§

impl Copy for wasmparser::readers::core::operators::MemArg

Source§

impl Copy for V128

Source§

impl Copy for RelocationEntry

Source§

impl Copy for wasmparser::readers::core::types::ArrayType

Source§

impl Copy for wasmparser::readers::core::types::FieldType

Source§

impl Copy for wasmparser::readers::core::types::GlobalType

Source§

impl Copy for wasmparser::readers::core::types::MemoryType

Source§

impl Copy for PackedIndex

Source§

impl Copy for wasmparser::readers::core::types::RefType

Source§

impl Copy for wasmparser::readers::core::types::TableType

Source§

impl Copy for wasmparser::readers::core::types::TagType

Source§

impl Copy for AliasableResourceId

Source§

impl Copy for ComponentCoreInstanceTypeId

Source§

impl Copy for ComponentCoreModuleTypeId

Source§

impl Copy for ComponentDefinedTypeId

Source§

impl Copy for ComponentFuncTypeId

Source§

impl Copy for ComponentInstanceTypeId

Source§

impl Copy for ComponentTypeId

Source§

impl Copy for ComponentValueTypeId

Source§

impl Copy for ResourceId

Source§

impl Copy for Frame

Source§

impl Copy for ValidatorId

Source§

impl Copy for CoreTypeId

Source§

impl Copy for RecGroupId

Source§

impl<'a> Copy for Utf8Pattern<'a>

1.0.0 · Source§

impl<'a> Copy for Component<'a>

1.0.0 · Source§

impl<'a> Copy for Prefix<'a>

Source§

impl<'a> Copy for Unexpected<'a>

Source§

impl<'a> Copy for Alias<'a>

Source§

impl<'a> Copy for SymbolInfo<'a>

1.0.0 · Source§

impl<'a> Copy for Arguments<'a>

1.10.0 · Source§

impl<'a> Copy for wasmtime_environ::__core::panic::Location<'a>

1.36.0 · Source§

impl<'a> Copy for IoSlice<'a>

1.28.0 · Source§

impl<'a> Copy for Ancestors<'a>

1.0.0 · Source§

impl<'a> Copy for PrefixComponent<'a>

Source§

impl<'a> Copy for RawSection<'a>

Source§

impl<'a> Copy for ComponentExportName<'a>

Source§

impl<'a> Copy for ComponentImport<'a>

Source§

impl<'a> Copy for ComponentImportName<'a>

Source§

impl<'a> Copy for wasmparser::readers::core::exports::Export<'a>

Source§

impl<'a> Copy for wasmparser::readers::core::imports::Import<'a>

Source§

impl<'a> Copy for Segment<'a>

Source§

impl<'a> Copy for Naming<'a>

Source§

impl<'a> Copy for ProducersFieldValue<'a>

Source§

impl<'a> Copy for TypesRef<'a>

Source§

impl<'a, E> Copy for BytesDeserializer<'a, E>

Source§

impl<'a, R> Copy for UnitRef<'a, R>
where R: Reader,

Source§

impl<'a, R> Copy for ReadCacheRange<'a, R>
where R: ReadCacheOps,

Source§

impl<'a, T> Copy for Ptr<'a, T>
where T: ?Sized,

Source§

impl<'a, T, const N: usize> Copy for ArrayWindows<'a, T, N>
where T: Copy + 'a,

Source§

impl<'abbrev, 'entry, 'unit, R> Copy for AttrsIter<'abbrev, 'entry, 'unit, R>
where R: Copy + Reader,

Source§

impl<'data> Copy for Version<'data>

Source§

impl<'data> Copy for CodeView<'data>

Source§

impl<'data> Copy for CompressedData<'data>

Source§

impl<'data> Copy for object::read::Export<'data>

Source§

impl<'data> Copy for object::read::Import<'data>

Source§

impl<'data> Copy for ObjectMapEntry<'data>

Source§

impl<'data> Copy for ObjectMapFile<'data>

Source§

impl<'data> Copy for SymbolMapName<'data>

Source§

impl<'data> Copy for Bytes<'data>

Source§

impl<'data, 'file, Elf, R> Copy for ElfSymbol<'data, 'file, Elf, R>
where Elf: Copy + FileHeader, R: Copy + ReadRef<'data>, <Elf as FileHeader>::Endian: Copy, <Elf as FileHeader>::Sym: Copy,

Source§

impl<'data, 'file, Elf, R> Copy for ElfSymbolTable<'data, 'file, Elf, R>
where Elf: Copy + FileHeader, R: Copy + ReadRef<'data>, <Elf as FileHeader>::Endian: Copy,

Source§

impl<'data, Elf, R> Copy for SectionTable<'data, Elf, R>
where Elf: Copy + FileHeader, R: Copy + ReadRef<'data>, <Elf as FileHeader>::SectionHeader: Copy,

Source§

impl<'data, Elf, R> Copy for SymbolTable<'data, Elf, R>
where Elf: Copy + FileHeader, R: Copy + ReadRef<'data>, <Elf as FileHeader>::Sym: Copy, <Elf as FileHeader>::Endian: Copy,

Source§

impl<'data, R> Copy for StringTable<'data, R>
where R: Copy + ReadRef<'data>,

Source§

impl<'de, E> Copy for BorrowedBytesDeserializer<'de, E>

Source§

impl<'de, E> Copy for BorrowedStrDeserializer<'de, E>

Source§

impl<'de, E> Copy for StrDeserializer<'de, E>

1.63.0 · Source§

impl<'fd> Copy for BorrowedFd<'fd>

Source§

impl<'input, Endian> Copy for EndianSlice<'input, Endian>
where Endian: Copy + Endianity,

Source§

impl<'prev, 'subs> Copy for ArgScopeStack<'prev, 'subs>
where 'subs: 'prev,

1.55.0 · Source§

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

Source§

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

Source§

impl<E> Copy for ReadExactError<E>
where E: Copy,

Source§

impl<E> Copy for WriteFmtError<E>
where E: Copy,

Source§

impl<E> Copy for CompressionHeader32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for CompressionHeader64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Dyn32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Dyn64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for FileHeader32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for FileHeader64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for GnuHashHeader<E>
where E: Copy + Endian,

Source§

impl<E> Copy for HashHeader<E>
where E: Copy + Endian,

Source§

impl<E> Copy for NoteHeader32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for NoteHeader64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for ProgramHeader32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for ProgramHeader64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Rel32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Rel64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Rela32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Rela64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for SectionHeader32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for SectionHeader64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Sym32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Sym64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Syminfo32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Syminfo64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Verdaux<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Verdef<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Vernaux<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Verneed<E>
where E: Copy + Endian,

Source§

impl<E> Copy for Versym<E>
where E: Copy + Endian,

Source§

impl<E> Copy for I16<E>
where E: Copy + Endian,

Source§

impl<E> Copy for I32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for I64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for U16<E>
where E: Copy + Endian,

Source§

impl<E> Copy for U32<E>
where E: Copy + Endian,

Source§

impl<E> Copy for U64<E>
where E: Copy + Endian,

Source§

impl<E> Copy for I16Bytes<E>
where E: Copy + Endian,

Source§

impl<E> Copy for I32Bytes<E>
where E: Copy + Endian,

Source§

impl<E> Copy for I64Bytes<E>
where E: Copy + Endian,

Source§

impl<E> Copy for U16Bytes<E>
where E: Copy + Endian,

Source§

impl<E> Copy for U32Bytes<E>
where E: Copy + Endian,

Source§

impl<E> Copy for U64Bytes<E>
where E: Copy + Endian,

Source§

impl<E> Copy for BoolDeserializer<E>

Source§

impl<E> Copy for CharDeserializer<E>

Source§

impl<E> Copy for F32Deserializer<E>

Source§

impl<E> Copy for F64Deserializer<E>

Source§

impl<E> Copy for I8Deserializer<E>

Source§

impl<E> Copy for I16Deserializer<E>

Source§

impl<E> Copy for I32Deserializer<E>

Source§

impl<E> Copy for I64Deserializer<E>

Source§

impl<E> Copy for I128Deserializer<E>

Source§

impl<E> Copy for IsizeDeserializer<E>

Source§

impl<E> Copy for U8Deserializer<E>

Source§

impl<E> Copy for U16Deserializer<E>

Source§

impl<E> Copy for U32Deserializer<E>

Source§

impl<E> Copy for U64Deserializer<E>

Source§

impl<E> Copy for U128Deserializer<E>

Source§

impl<E> Copy for UnitDeserializer<E>

Source§

impl<E> Copy for UsizeDeserializer<E>

1.28.0 · Source§

impl<F> Copy for RepeatWith<F>
where F: Copy,

Source§

impl<Idx> Copy for wasmtime_environ::__core::range::Range<Idx>
where Idx: Copy,

Source§

impl<Idx> Copy for RangeFrom<Idx>
where Idx: Copy,

Source§

impl<Idx> Copy for RangeInclusive<Idx>
where Idx: Copy,

1.0.0 · Source§

impl<Idx> Copy for RangeTo<Idx>
where Idx: Copy,

1.26.0 · Source§

impl<Idx> Copy for RangeToInclusive<Idx>
where Idx: Copy,

Source§

impl<Offset> Copy for UnitType<Offset>
where Offset: Copy + ReaderOffset,

Source§

impl<P: Copy> Copy for VMComponentOffsets<P>

Source§

impl<P: Copy> Copy for VMOffsets<P>

Source§

impl<P: Copy> Copy for VMOffsetsFields<P>

1.33.0 · Source§

impl<Ptr> Copy for Pin<Ptr>
where Ptr: Copy,

Source§

impl<R> Copy for DebugAbbrev<R>
where R: Copy,

Source§

impl<R> Copy for DebugAddr<R>
where R: Copy,

Source§

impl<R> Copy for DebugAranges<R>
where R: Copy,

Source§

impl<R> Copy for DebugFrame<R>
where R: Copy + Reader,

Source§

impl<R> Copy for EhFrame<R>
where R: Copy + Reader,

Source§

impl<R> Copy for EhFrameHdr<R>
where R: Copy + Reader,

Source§

impl<R> Copy for DebugCuIndex<R>
where R: Copy,

Source§

impl<R> Copy for DebugTuIndex<R>
where R: Copy,

Source§

impl<R> Copy for DebugLine<R>
where R: Copy,

Source§

impl<R> Copy for DebugLoc<R>
where R: Copy,

Source§

impl<R> Copy for DebugLocLists<R>
where R: Copy,

Source§

impl<R> Copy for LocationListEntry<R>
where R: Copy + Reader,

Source§

impl<R> Copy for LocationLists<R>
where R: Copy,

Source§

impl<R> Copy for Expression<R>
where R: Copy + Reader,

Source§

impl<R> Copy for OperationIter<R>
where R: Copy + Reader,

Source§

impl<R> Copy for DebugRanges<R>
where R: Copy,

Source§

impl<R> Copy for DebugRngLists<R>
where R: Copy,

Source§

impl<R> Copy for RangeLists<R>
where R: Copy,

Source§

impl<R> Copy for DebugLineStr<R>
where R: Copy,

Source§

impl<R> Copy for DebugStr<R>
where R: Copy,

Source§

impl<R> Copy for DebugStrOffsets<R>
where R: Copy,

Source§

impl<R> Copy for Attribute<R>
where R: Copy + Reader,

Source§

impl<R> Copy for DebugInfo<R>
where R: Copy,

Source§

impl<R> Copy for DebugTypes<R>
where R: Copy,

Source§

impl<R, Offset> Copy for LineInstruction<R, Offset>
where R: Copy + Reader<Offset = Offset>, Offset: Copy + ReaderOffset,

Source§

impl<R, Offset> Copy for gimli::read::op::Location<R, Offset>
where R: Copy + Reader<Offset = Offset>, Offset: Copy + ReaderOffset,

Source§

impl<R, Offset> Copy for Operation<R, Offset>
where R: Copy + Reader<Offset = Offset>, Offset: Copy + ReaderOffset,

Source§

impl<R, Offset> Copy for AttributeValue<R, Offset>
where R: Copy + Reader<Offset = Offset>, Offset: Copy + ReaderOffset,

Source§

impl<R, Offset> Copy for FileEntry<R, Offset>
where R: Copy + Reader<Offset = Offset>, Offset: Copy + ReaderOffset,

Source§

impl<R, Offset> Copy for Piece<R, Offset>
where R: Copy + Reader<Offset = Offset>, Offset: Copy + ReaderOffset,

Source§

impl<R, Offset> Copy for UnitHeader<R, Offset>
where R: Copy + Reader<Offset = Offset>, Offset: Copy + ReaderOffset,

Source§

impl<Section, Symbol> Copy for object::common::SymbolFlags<Section, Symbol>
where Section: Copy, Symbol: Copy,

1.0.0 · Source§

impl<T> Copy for Option<T>
where T: Copy,

1.17.0 · Source§

impl<T> Copy for Bound<T>
where T: Copy,

1.36.0 · Source§

impl<T> Copy for Poll<T>
where T: Copy,

Source§

impl<T> Copy for SendTimeoutError<T>
where T: Copy,

1.0.0 · Source§

impl<T> Copy for TrySendError<T>
where T: Copy,

Source§

impl<T> Copy for UnitSectionOffset<T>
where T: Copy,

Source§

impl<T> Copy for DieReference<T>
where T: Copy,

1.0.0 · Source§

impl<T> Copy for *const T
where T: ?Sized,

1.0.0 · Source§

impl<T> Copy for *mut T
where T: ?Sized,

1.0.0 · Source§

impl<T> Copy for &T
where T: ?Sized,

Shared references can be copied, but mutable references cannot!

Source§

impl<T> Copy for PackedOption<T>
where T: Copy + ReservedValue,

Source§

impl<T> Copy for EntityList<T>

1.19.0 · Source§

impl<T> Copy for Reverse<T>
where T: Copy,

1.0.0 · Source§

impl<T> Copy for PhantomData<T>
where T: ?Sized,

1.21.0 · Source§

impl<T> Copy for Discriminant<T>

1.20.0 · Source§

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

1.28.0 · Source§

impl<T> Copy for NonZero<T>

1.74.0 · Source§

impl<T> Copy for Saturating<T>
where T: Copy,

1.0.0 · Source§

impl<T> Copy for Wrapping<T>
where T: Copy,

1.25.0 · Source§

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

1.0.0 · Source§

impl<T> Copy for SendError<T>
where T: Copy,

Source§

impl<T> Copy for ScalarBitSet<T>
where T: Copy,

Source§

impl<T> Copy for DebugAbbrevOffset<T>
where T: Copy,

Source§

impl<T> Copy for DebugAddrBase<T>
where T: Copy,

Source§

impl<T> Copy for DebugAddrIndex<T>
where T: Copy,

Source§

impl<T> Copy for DebugArangesOffset<T>
where T: Copy,

Source§

impl<T> Copy for DebugFrameOffset<T>
where T: Copy,

Source§

impl<T> Copy for DebugInfoOffset<T>
where T: Copy,

Source§

impl<T> Copy for DebugLineOffset<T>
where T: Copy,

Source§

impl<T> Copy for DebugLineStrOffset<T>
where T: Copy,

Source§

impl<T> Copy for DebugLocListsBase<T>
where T: Copy,

Source§

impl<T> Copy for DebugLocListsIndex<T>
where T: Copy,

Source§

impl<T> Copy for DebugMacinfoOffset<T>
where T: Copy,

Source§

impl<T> Copy for DebugMacroOffset<T>
where T: Copy,

Source§

impl<T> Copy for DebugRngListsBase<T>
where T: Copy,

Source§

impl<T> Copy for DebugRngListsIndex<T>
where T: Copy,

Source§

impl<T> Copy for DebugStrOffset<T>
where T: Copy,

Source§

impl<T> Copy for DebugStrOffsetsBase<T>
where T: Copy,

Source§

impl<T> Copy for DebugStrOffsetsIndex<T>
where T: Copy,

Source§

impl<T> Copy for DebugTypesOffset<T>
where T: Copy,

Source§

impl<T> Copy for EhFrameOffset<T>
where T: Copy,

Source§

impl<T> Copy for LocationListsOffset<T>
where T: Copy,

Source§

impl<T> Copy for RangeListsOffset<T>
where T: Copy,

Source§

impl<T> Copy for RawRangeListsOffset<T>
where T: Copy,

Source§

impl<T> Copy for UnwindExpression<T>
where T: Copy + ReaderOffset,

Source§

impl<T> Copy for UnitOffset<T>
where T: Copy,

Source§

impl<T> Copy for Unalign<T>
where T: Copy,

1.36.0 · Source§

impl<T> Copy for MaybeUninit<T>
where T: Copy,

1.0.0 · Source§

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

1.58.0 · Source§

impl<T, const N: usize> Copy for [T; N]
where T: Copy,

Source§

impl<T, const N: usize> Copy for Mask<T, N>

Source§

impl<T, const N: usize> Copy for Simd<T, N>

Source§

impl<T: Copy> Copy for AllCallFunc<T>

Source§

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