Trait nom::lib::std::prelude::v1::rust_2018::Copy1.0.0[][src]

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, which isn’t always desired.

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` may not 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)
  • Tuple types, if each component also implements Copy (e.g., (), (i32, bool))
  • 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.

Implementations on Foreign Types

Shared references can be copied, but mutable references cannot!

Implementors

impl Copy for Adler32

impl Copy for MatchKind

impl Copy for MatchKind

impl<A: Copy> Copy for ArrayString<A> where
    A: Array<Item = u8> + Copy,
    A::Index: Copy

impl<T: Copy> Copy for CapacityError<T>

impl Copy for Stream

impl Copy for PrintFmt

impl<'a> Copy for Utf8Ancestors<'a>

impl<'a> Copy for Utf8Component<'a>

impl<'a> Copy for Utf8Prefix<'a>

impl<'a> Copy for Utf8PrefixComponent<'a>

impl Copy for Func

impl Copy for Endian

impl<T: Copy> Copy for LocalResult<T>

impl Copy for FixedOffset

impl Copy for Local

impl Copy for Utc

impl Copy for NaiveDate

impl Copy for IsoWeek

impl Copy for NaiveTime

impl<Tz: TimeZone> Copy for Date<Tz> where
    <Tz as TimeZone>::Offset: Copy

impl<Tz: TimeZone> Copy for DateTime<Tz> where
    <Tz as TimeZone>::Offset: Copy

impl Copy for Pad

impl Copy for ParseError

impl Copy for Weekday

impl Copy for Month

impl Copy for AppSettings

impl Copy for ArgSettings

impl Copy for ValueHint

impl Copy for ErrorKind

impl Copy for ColorChoice

impl Copy for SubCommand

impl Copy for Theme

impl Copy for FileFormat

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

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

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

impl Copy for RecvError

impl<T: Copy> Copy for Steal<T>

impl<T: ?Sized + Pointable> Copy for Shared<'_, T>

impl<T: Copy> Copy for CachePadded<T>

impl<T: Copy + ?Sized> Copy for DebugIgnore<T>

impl<L: Copy, R: Copy> Copy for Either<L, R>

impl Copy for WriteStyle

impl Copy for Format

impl Copy for Encoding

impl Copy for Register

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl Copy for SectionId

impl Copy for DwoId

impl Copy for Arm

impl Copy for AArch64

impl Copy for RiscV

impl Copy for X86

impl Copy for X86_64

impl Copy for DwSect

impl Copy for DwSectV2

impl Copy for DwUt

impl Copy for DwCfa

impl Copy for DwChildren

impl Copy for DwTag

impl Copy for DwAt

impl Copy for DwForm

impl Copy for DwAte

impl Copy for DwLle

impl Copy for DwDs

impl Copy for DwEnd

impl Copy for DwAccess

impl Copy for DwVis

impl Copy for DwLang

impl Copy for DwAddr

impl Copy for DwId

impl Copy for DwCc

impl Copy for DwInl

impl Copy for DwOrd

impl Copy for DwDsc

impl Copy for DwIdx

impl Copy for DwDefaulted

impl Copy for DwLns

impl Copy for DwLne

impl Copy for DwLnct

impl Copy for DwMacro

impl Copy for DwRle

impl Copy for DwOp

impl Copy for DwEhPe

impl Copy for BigEndian

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

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

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

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

impl Copy for Pointer

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

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

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

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

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

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

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

impl Copy for LineRow

impl Copy for ColumnType

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl Copy for Range

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

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

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

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

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

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

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

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

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

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

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

impl Copy for ValueType

impl Copy for Value

impl Copy for StoreOnHeap

impl Copy for Error

impl<'g> Copy for BuildTargetId<'g>

impl<'g, 'a> Copy for DisplayFeatures<'g, 'a>

impl<'g> Copy for FeatureGraph<'g>

impl<'g> Copy for FeatureId<'g>

impl<'g> Copy for FeatureMetadata<'g>

impl<'g> Copy for CrossLink<'g>

impl Copy for FeatureType

impl<'g> Copy for PackageMetadata<'g>

impl<'g> Copy for PackageSource<'g>

impl<'g> Copy for ExternalSource<'g>

impl<'g> Copy for GitReq<'g>

impl<'g> Copy for PackagePublish<'g>

impl<'g> Copy for PackageLink<'g>

impl<'g> Copy for EnabledStatus<'g>

impl<'g> Copy for PlatformStatus<'g>

impl<'g> Copy for PlatformEval<'g>

impl Copy for Duration

impl Copy for Error

impl<T: Copy> Copy for Serde<T>

impl<'i, T: Copy + Display> Copy for Indented<'i, T>

impl<'i, T: Copy + Display> Copy for IndentedSkipIntial<'i, T>

impl<T: Copy> Copy for MinMaxResult<T>

impl<T: Copy> Copy for Position<T>

impl<T: Copy> Copy for FoldWhile<T>

impl Copy for ErrorCode

impl Copy for Error

impl Copy for DIR

impl Copy for group

impl Copy for utimbuf

impl Copy for timeval

impl Copy for timespec

impl Copy for rlimit

impl Copy for rusage

impl Copy for ipv6_mreq

impl Copy for hostent

impl Copy for iovec

impl Copy for pollfd

impl Copy for winsize

impl Copy for linger

impl Copy for sigval

impl Copy for itimerval

impl Copy for tms

impl Copy for servent

impl Copy for protoent

impl Copy for FILE

impl Copy for fpos_t

impl Copy for timezone

impl Copy for in_addr

impl Copy for ip_mreq

impl Copy for ip_mreqn

impl Copy for sockaddr

impl Copy for sockaddr_in

impl Copy for addrinfo

impl Copy for sockaddr_ll

impl Copy for fd_set

impl Copy for tm

impl Copy for sched_param

impl Copy for Dl_info

impl Copy for lconv

impl Copy for in_pktinfo

impl Copy for ifaddrs

impl Copy for in6_rtmsg

impl Copy for arpreq

impl Copy for arpreq_old

impl Copy for arphdr

impl Copy for mmsghdr

impl Copy for epoll_event

impl Copy for sockaddr_un

impl Copy for utsname

impl Copy for sigevent

impl Copy for fpos64_t

impl Copy for rlimit64

impl Copy for glob_t

impl Copy for passwd

impl Copy for spwd

impl Copy for dqblk

impl Copy for itimerspec

impl Copy for fsid_t

impl Copy for packet_mreq

impl Copy for cpu_set_t

impl Copy for msginfo

impl Copy for sembuf

impl Copy for input_event

impl Copy for input_id

impl Copy for input_mask

impl Copy for ff_replay

impl Copy for ff_trigger

impl Copy for ff_envelope

impl Copy for ff_effect

impl Copy for Elf32_Ehdr

impl Copy for Elf64_Ehdr

impl Copy for Elf32_Sym

impl Copy for Elf64_Sym

impl Copy for Elf32_Phdr

impl Copy for Elf64_Phdr

impl Copy for Elf32_Shdr

impl Copy for Elf64_Shdr

impl Copy for ucred

impl Copy for mntent

impl Copy for genlmsghdr

impl Copy for in6_pktinfo

impl Copy for sockaddr_vm

impl Copy for regmatch_t

impl Copy for can_filter

impl Copy for sock_filter

impl Copy for sock_fprog

impl Copy for nlmsghdr

impl Copy for nlmsgerr

impl Copy for nlattr

impl Copy for sockaddr_nl

impl Copy for dirent

impl Copy for dirent64

impl Copy for af_alg_iv

impl Copy for mq_attr

impl Copy for sock_txtime

impl Copy for statx

impl Copy for aiocb

impl Copy for __timeval

impl Copy for glob64_t

impl Copy for msghdr

impl Copy for cmsghdr

impl Copy for termios

impl Copy for mallinfo

impl Copy for mallinfo2

impl Copy for nl_pktinfo

impl Copy for nl_mmap_req

impl Copy for nl_mmap_hdr

impl Copy for rtentry

impl Copy for timex

impl Copy for ntptimeval

impl Copy for regex_t

impl Copy for Elf64_Chdr

impl Copy for Elf32_Chdr

impl Copy for seminfo

impl Copy for utmpx

impl Copy for sigset_t

impl Copy for sysinfo

impl Copy for msqid_ds

impl Copy for semid_ds

impl Copy for sigaction

impl Copy for statfs

impl Copy for flock

impl Copy for flock64

impl Copy for siginfo_t

impl Copy for stack_t

impl Copy for stat

impl Copy for stat64

impl Copy for statfs64

impl Copy for statvfs64

impl Copy for user

impl Copy for mcontext_t

impl Copy for ipc_perm

impl Copy for shmid_ds

impl Copy for ucontext_t

impl Copy for statvfs

impl Copy for max_align_t

impl Copy for sem_t

impl Copy for termios2

impl Copy for can_frame

impl Copy for canfd_frame

impl Copy for open_how

impl Copy for in6_addr

impl Copy for Level

impl Copy for LevelFilter

impl Copy for Prefilter

impl Copy for TDEFLFlush

impl Copy for TDEFLStatus

impl Copy for TINFLStatus

impl Copy for MZFlush

impl Copy for MZStatus

impl Copy for MZError

impl Copy for DataFormat

impl Copy for FilterMatch

impl Copy for StatusLevel

impl Copy for RunStats

impl Copy for RunIgnored

impl<'a> Copy for TestInstance<'a>

impl Copy for Entry

impl Copy for Type

impl Copy for Errno

impl Copy for AtFlags

impl Copy for OFlag

impl Copy for RenameFlags

impl Copy for SealFlag

impl Copy for FdFlag

impl Copy for FlockArg

impl Copy for MsFlags

impl Copy for MntFlags

impl Copy for MQ_OFlag

impl Copy for FdFlag

impl Copy for MqAttr

impl Copy for PollFd

impl Copy for PollFlags

impl Copy for CloneFlags

impl Copy for CpuSet

impl Copy for LioOpcode

impl Copy for LioMode

impl Copy for EpollFlags

impl Copy for EpollOp

impl Copy for EpollEvent

impl Copy for EfdFlags

impl Copy for ProtFlags

impl Copy for MapFlags

impl Copy for MRemapFlags

impl Copy for MmapAdvise

impl Copy for MsFlags

impl Copy for Persona

impl Copy for Request

impl Copy for Event

impl Copy for Options

impl Copy for QuotaType

impl Copy for QuotaFmt

impl Copy for Dqblk

impl Copy for RebootMode

impl Copy for Resource

impl Copy for FdSet

impl Copy for Signal

impl Copy for SaFlags

impl Copy for SigmaskHow

impl Copy for SigSet

impl Copy for SigHandler

impl Copy for SigAction

impl Copy for SigevNotify

impl Copy for SigEvent

impl Copy for SfdFlags

impl Copy for InetAddr

impl Copy for IpAddr

impl Copy for Ipv4Addr

impl Copy for Ipv6Addr

impl Copy for UnixAddr

impl Copy for SockAddr

impl Copy for NetlinkAddr

impl Copy for AlgAddr

impl Copy for LinkAddr

impl Copy for VsockAddr

impl Copy for ReuseAddr

impl Copy for ReusePort

impl Copy for TcpNoDelay

impl Copy for Linger

impl Copy for IpFreebind

impl Copy for SendTimeout

impl Copy for Broadcast

impl Copy for OobInline

impl Copy for SocketError

impl Copy for KeepAlive

impl Copy for TcpKeepIdle

impl Copy for TcpMaxSeg

impl Copy for TcpRepair

impl Copy for RcvBuf

impl Copy for SndBuf

impl Copy for RcvBufForce

impl Copy for SndBufForce

impl Copy for SockType

impl Copy for AcceptConn

impl Copy for OriginalDst

impl Copy for Mark

impl Copy for PassCred

impl Copy for RxqOvfl

impl Copy for Ipv6V6Only

impl Copy for Ipv4RecvErr

impl Copy for Ipv6RecvErr

impl Copy for Ipv4Ttl

impl Copy for Ipv6Ttl

impl Copy for SockType

impl Copy for SockFlag

impl Copy for MsgFlags

impl<'a> Copy for RecvMsg<'a>

impl<'a> Copy for CmsgIterator<'a>

impl<'a> Copy for ControlMessage<'a>

impl Copy for Shutdown

impl Copy for SFlag

impl Copy for Mode

impl Copy for Statfs

impl Copy for FsType

impl Copy for FsFlags

impl Copy for Statvfs

impl Copy for SysInfo

impl Copy for BaudRate

impl Copy for SetArg

impl Copy for FlushArg

impl Copy for FlowArg

impl Copy for InputFlags

impl Copy for OutputFlags

impl Copy for LocalFlags

impl Copy for TimeSpec

impl Copy for TimeVal

impl Copy for RemoteIoVec

impl<T: Copy> Copy for IoVec<T>

impl Copy for UtsName

impl Copy for WaitPidFlag

impl Copy for WaitStatus

impl Copy for InitFlags

impl Copy for Inotify

impl Copy for ClockId

impl Copy for TimerFlags

impl Copy for Expiration

impl Copy for ClockId

impl Copy for UContext

impl Copy for Uid

impl Copy for Gid

impl Copy for Pid

impl Copy for ForkResult

impl Copy for Whence

impl Copy for LinkatFlags

impl Copy for PathconfVar

impl Copy for SysconfVar

impl Copy for ResUid

impl Copy for ResGid

impl Copy for AccessFlags

impl<A: Copy> Copy for ExtendedGcd<A>

impl Copy for AddressSize

impl Copy for SectionKind

impl Copy for ComdatKind

impl Copy for SymbolKind

impl Copy for SymbolScope

impl Copy for FileFlags

impl<Section: Copy> Copy for SymbolFlags<Section>

impl Copy for Endianness

impl Copy for BigEndian

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

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

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

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

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

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

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

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

impl Copy for ArchiveKind

impl<'data> Copy for SectionTable<'data>

impl<'data, 'file, R: Copy> Copy for CoffSymbolTable<'data, 'file, R> where
    R: ReadRef<'data>, 

impl<'data, 'file, R: Copy> Copy for CoffSymbol<'data, 'file, R> where
    R: ReadRef<'data>, 

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

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

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

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

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

impl<'data, E: Copy + Endian> Copy for LoadCommandIterator<'data, E>

impl<'data, E: Copy + Endian> Copy for LoadCommandData<'data, E>

impl<'data, E: Copy + Endian> Copy for LoadCommandVariant<'data, E>

impl<'data, Mach: Copy + MachHeader, R: Copy> Copy for SymbolTable<'data, Mach, R> where
    R: ReadRef<'data>,
    Mach::Nlist: Copy

impl<'data, 'file, Mach: Copy, R: Copy> Copy for MachOSymbolTable<'data, 'file, Mach, R> where
    Mach: MachHeader,
    R: ReadRef<'data>, 

impl<'data, 'file, Mach: Copy, R: Copy> Copy for MachOSymbol<'data, 'file, Mach, R> where
    Mach: MachHeader,
    R: ReadRef<'data>,
    Mach::Nlist: Copy

impl<'data> Copy for DataDirectories<'data>

impl<'data> Copy for ExportTarget<'data>

impl<'data> Copy for Export<'data>

impl<'data> Copy for Import<'data>

impl<'data> Copy for RelocationBlockIterator<'data>

impl Copy for Relocation

impl<'data> Copy for RichHeaderInfo<'data>

impl Copy for Error

impl Copy for FileKind

impl Copy for ObjectKind

impl Copy for SymbolIndex

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

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

impl<'data> Copy for Import<'data>

impl<'data> Copy for Export<'data>

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

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

impl Copy for Header

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

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

impl Copy for Ident

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<E: Copy + Endian> Copy for DyldCacheHeader<E>

impl<E: Copy + Endian> Copy for DyldCacheImageInfo<E>

impl Copy for FatHeader

impl Copy for FatArch32

impl Copy for FatArch64

impl<E: Copy + Endian> Copy for MachHeader32<E>

impl<E: Copy + Endian> Copy for MachHeader64<E>

impl<E: Copy + Endian> Copy for LoadCommand<E>

impl<E: Copy + Endian> Copy for LcStr<E>

impl<E: Copy + Endian> Copy for SegmentCommand32<E>

impl<E: Copy + Endian> Copy for SegmentCommand64<E>

impl<E: Copy + Endian> Copy for Section32<E>

impl<E: Copy + Endian> Copy for Section64<E>

impl<E: Copy + Endian> Copy for Fvmlib<E>

impl<E: Copy + Endian> Copy for FvmlibCommand<E>

impl<E: Copy + Endian> Copy for Dylib<E>

impl<E: Copy + Endian> Copy for DylibCommand<E>

impl<E: Copy + Endian> Copy for SubFrameworkCommand<E>

impl<E: Copy + Endian> Copy for SubClientCommand<E>

impl<E: Copy + Endian> Copy for SubUmbrellaCommand<E>

impl<E: Copy + Endian> Copy for SubLibraryCommand<E>

impl<E: Copy + Endian> Copy for DylinkerCommand<E>

impl<E: Copy + Endian> Copy for ThreadCommand<E>

impl<E: Copy + Endian> Copy for RoutinesCommand32<E>

impl<E: Copy + Endian> Copy for RoutinesCommand64<E>

impl<E: Copy + Endian> Copy for SymtabCommand<E>

impl<E: Copy + Endian> Copy for DysymtabCommand<E>

impl<E: Copy + Endian> Copy for DylibModule32<E>

impl<E: Copy + Endian> Copy for DylibModule64<E>

impl<E: Copy + Endian> Copy for DylibReference<E>

impl<E: Copy + Endian> Copy for TwolevelHint<E>

impl<E: Copy + Endian> Copy for PrebindCksumCommand<E>

impl<E: Copy + Endian> Copy for UuidCommand<E>

impl<E: Copy + Endian> Copy for RpathCommand<E>

impl<E: Copy + Endian> Copy for LinkeditDataCommand<E>

impl<E: Copy + Endian> Copy for FilesetEntryCommand<E>

impl<E: Copy + Endian> Copy for VersionMinCommand<E>

impl<E: Copy + Endian> Copy for BuildVersionCommand<E>

impl<E: Copy + Endian> Copy for BuildToolVersion<E>

impl<E: Copy + Endian> Copy for DyldInfoCommand<E>

impl<E: Copy + Endian> Copy for LinkerOptionCommand<E>

impl<E: Copy + Endian> Copy for SymsegCommand<E>

impl<E: Copy + Endian> Copy for IdentCommand<E>

impl<E: Copy + Endian> Copy for FvmfileCommand<E>

impl<E: Copy + Endian> Copy for EntryPointCommand<E>

impl<E: Copy + Endian> Copy for DataInCodeEntry<E>

impl<E: Copy + Endian> Copy for NoteCommand<E>

impl<E: Copy + Endian> Copy for Nlist32<E>

impl<E: Copy + Endian> Copy for Nlist64<E>

impl<E: Copy + Endian> Copy for Relocation<E>

impl Copy for Guid

impl Copy for ImageSymbol

impl Copy for AnsiColors

impl Copy for CssColors

impl Copy for XtermColors

impl Copy for Rgb

impl Copy for DynColors

impl Copy for Effect

impl Copy for Style

impl Copy for Time

impl<N: Copy> Copy for DfsEvent<N>

impl<B: Copy> Copy for Control<B>

impl<G: Copy, F: Copy> Copy for NodeFiltered<G, F>

impl<G: Copy, F: Copy> Copy for EdgeFiltered<G, F>

impl<G: Copy> Copy for Reversed<G>

impl<Ix: Copy> Copy for EdgeIndex<Ix> where
    Ix: IndexType

impl<'a, E, Ix: IndexType> Copy for EdgeReference<'a, E, Ix>

impl<'a, E, Ty, Ix: Copy> Copy for EdgeReference<'a, E, Ty, Ix>

impl<Ix: Copy> Copy for NodeIndex<Ix>

impl<Ix: Copy> Copy for EdgeIndex<Ix>

impl<'a, E, Ix: IndexType> Copy for EdgeReference<'a, E, Ix>

impl Copy for Direction

impl Copy for Directed

impl Copy for Undirected

impl Copy for Span

impl Copy for Delimiter

impl Copy for Spacing

impl Copy for SpanRange

impl<'t> Copy for Match<'t>

impl<'t> Copy for Match<'t>

impl Copy for Span

impl Copy for Position

impl Copy for Flag

impl Copy for Utf8Range

impl Copy for Buffer

impl Copy for Op

impl<E> Copy for UnitDeserializer<E>

impl<E> Copy for BoolDeserializer<E>

impl<E> Copy for I8Deserializer<E>

impl<E> Copy for I16Deserializer<E>

impl<E> Copy for I32Deserializer<E>

impl<E> Copy for I64Deserializer<E>

impl<E> Copy for IsizeDeserializer<E>

impl<E> Copy for U8Deserializer<E>

impl<E> Copy for U16Deserializer<E>

impl<E> Copy for U64Deserializer<E>

impl<E> Copy for UsizeDeserializer<E>

impl<E> Copy for F32Deserializer<E>

impl<E> Copy for F64Deserializer<E>

impl<E> Copy for CharDeserializer<E>

impl<E> Copy for I128Deserializer<E>

impl<E> Copy for U128Deserializer<E>

impl<E> Copy for U32Deserializer<E>

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

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

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

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

impl Copy for IgnoredAny

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

impl Copy for Category

impl Copy for ColorLevel

impl Copy for Underscore

impl Copy for Abstract

impl Copy for As

impl Copy for Async

impl Copy for Auto

impl Copy for Await

impl Copy for Become

impl Copy for Box

impl Copy for Break

impl Copy for Const

impl Copy for Continue

impl Copy for Crate

impl Copy for Default

impl Copy for Do

impl Copy for Dyn

impl Copy for Else

impl Copy for Enum

impl Copy for Extern

impl Copy for Final

impl Copy for Fn

impl Copy for For

impl Copy for If

impl Copy for Impl

impl Copy for In

impl Copy for Let

impl Copy for Loop

impl Copy for Macro

impl Copy for Match

impl Copy for Mod

impl Copy for Move

impl Copy for Mut

impl Copy for Override

impl Copy for Priv

impl Copy for Pub

impl Copy for Ref

impl Copy for Return

impl Copy for SelfType

impl Copy for SelfValue

impl Copy for Static

impl Copy for Struct

impl Copy for Super

impl Copy for Trait

impl Copy for Try

impl Copy for Type

impl Copy for Typeof

impl Copy for Union

impl Copy for Unsafe

impl Copy for Unsized

impl Copy for Use

impl Copy for Virtual

impl Copy for Where

impl Copy for While

impl Copy for Yield

impl Copy for Add

impl Copy for AddEq

impl Copy for And

impl Copy for AndAnd

impl Copy for AndEq

impl Copy for At

impl Copy for Bang

impl Copy for Caret

impl Copy for CaretEq

impl Copy for Colon

impl Copy for Colon2

impl Copy for Comma

impl Copy for Div

impl Copy for DivEq

impl Copy for Dollar

impl Copy for Dot

impl Copy for Dot2

impl Copy for Dot3

impl Copy for DotDotEq

impl Copy for Eq

impl Copy for EqEq

impl Copy for Ge

impl Copy for Gt

impl Copy for Le

impl Copy for Lt

impl Copy for MulEq

impl Copy for Ne

impl Copy for Or

impl Copy for OrEq

impl Copy for OrOr

impl Copy for Pound

impl Copy for Question

impl Copy for RArrow

impl Copy for LArrow

impl Copy for Rem

impl Copy for RemEq

impl Copy for FatArrow

impl Copy for Semi

impl Copy for Shl

impl Copy for ShlEq

impl Copy for Shr

impl Copy for ShrEq

impl Copy for Star

impl Copy for Sub

impl Copy for SubEq

impl Copy for Tilde

impl Copy for Brace

impl Copy for Bracket

impl Copy for Paren

impl Copy for Group

impl<'a> Copy for Cursor<'a>

impl Copy for AttrStyle

impl Copy for BinOp

impl Copy for RangeLimits

impl Copy for UnOp

impl<'c, 'a> Copy for StepCursor<'c, 'a>

impl Copy for Size

impl Copy for CDataModel

impl Copy for Environment

impl Copy for Endianness

impl Copy for ColorChoice

impl Copy for Color

impl Copy for AsciiSpace

impl Copy for FirstFit

impl<'a> Copy for Word<'a>

impl Copy for Duration

impl Copy for Timespec

impl Copy for PreciseTime

impl Copy for SteadyTime

impl Copy for Tm

impl Copy for ParseError

impl Copy for XxHash64

impl Copy for XxHash32