pub trait Clone: Sized {
// Required method
fn clone(&self) -> Self;
// Provided method
fn clone_from(&mut self, source: &Self) { ... }
}
Expand description
A common trait for the ability to explicitly duplicate an object.
Differs from Copy
in that Copy
is implicit and an inexpensive bit-wise copy, while
Clone
is always explicit and may or may not be expensive. In order to enforce
these characteristics, Rust does not allow you to reimplement Copy
, but you
may reimplement Clone
and run arbitrary code.
Since Clone
is more general than Copy
, you can automatically make anything
Copy
be Clone
as well.
§Derivable
This trait can be used with #[derive]
if all fields are Clone
. The derive
d
implementation of Clone
calls clone
on each field.
For a generic struct, #[derive]
implements Clone
conditionally by adding bound Clone
on
generic parameters.
// `derive` implements Clone for Reading<T> when T is Clone.
#[derive(Clone)]
struct Reading<T> {
frequency: T,
}
§How can I implement Clone
?
Types that are Copy
should have a trivial implementation of Clone
. More formally:
if T: Copy
, x: T
, and y: &T
, then let x = y.clone();
is equivalent to let x = *y;
.
Manual implementations should be careful to uphold this invariant; however, unsafe code
must not rely on it to ensure memory safety.
An example is a generic struct holding a function pointer. In this case, the
implementation of Clone
cannot be derive
d, but can be implemented as:
struct Generate<T>(fn() -> T);
impl<T> Copy for Generate<T> {}
impl<T> Clone for Generate<T> {
fn clone(&self) -> Self {
*self
}
}
If we derive
:
#[derive(Copy, Clone)]
struct Generate<T>(fn() -> T);
the auto-derived implementations will have unnecessary T: Copy
and T: Clone
bounds:
// Automatically derived
impl<T: Copy> Copy for Generate<T> { }
// Automatically derived
impl<T: Clone> Clone for Generate<T> {
fn clone(&self) -> Generate<T> {
Generate(Clone::clone(&self.0))
}
}
The bounds are unnecessary because clearly the function itself should be copy- and cloneable even if its return type is not:
#[derive(Copy, Clone)]
struct Generate<T>(fn() -> T);
struct NotCloneable;
fn generate_not_cloneable() -> NotCloneable {
NotCloneable
}
Generate(generate_not_cloneable).clone(); // error: trait bounds were not satisfied
// Note: With the manual implementations the above line will compile.
§Additional implementors
In addition to the implementors listed below,
the following types also implement Clone
:
- Function item types (i.e., the distinct types defined for each function)
- Function pointer types (e.g.,
fn() -> i32
) - Closure types, if they capture no value from the environment
or if all such captured values implement
Clone
themselves. Note that variables captured by shared reference always implementClone
(even if the referent doesn’t), while variables captured by mutable reference never implementClone
.
Required Methods§
Provided Methods§
1.0.0 · Sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
.
a.clone_from(&b)
is equivalent to a = b.clone()
in functionality,
but can be overridden to reuse the resources of a
to avoid unnecessary
allocations.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl Clone for PrivateInput
impl Clone for Dictionary
impl Clone for OffsetValue
impl Clone for BuiltinName
impl Clone for ApUpdate
impl Clone for FpUpdate
impl Clone for Op1Addr
impl Clone for Opcode
impl Clone for PcUpdate
impl Clone for Register
impl Clone for Res
impl Clone for LayoutName
impl Clone for MaybeRelocatable
impl Clone for BuiltinRunner
impl Clone for BuiltinAdditionalData
impl Clone for CairoArg
impl Clone for RunnerMode
impl Clone for cairo_vm::with_std::cmp::Ordering
impl Clone for Infallible
impl Clone for cairo_vm::with_std::fmt::Alignment
impl Clone for FpCategory
impl Clone for IntErrorKind
impl Clone for SearchStep
impl Clone for cairo_vm::with_std::sync::atomic::Ordering
impl Clone for RecvTimeoutError
impl Clone for TryRecvError
impl Clone for alloc::collections::TryReserveErrorKind
impl Clone for AsciiChar
impl Clone for IpAddr
impl Clone for Ipv6MulticastScope
impl Clone for SocketAddr
impl Clone for VarError
impl Clone for SeekFrom
impl Clone for std::io::error::ErrorKind
impl Clone for Shutdown
impl Clone for BacktraceStyle
impl Clone for allocator_api2::stable::raw_vec::TryReserveErrorKind
impl Clone for Compress
impl Clone for Validate
impl Clone for ark_std::io::error::ErrorKind
impl Clone for byteorder::BigEndian
impl Clone for byteorder::LittleEndian
impl Clone for TruncSide
impl Clone for FlushCompress
impl Clone for FlushDecompress
impl Clone for Status
impl Clone for hashbrown::TryReserveError
impl Clone for FromHexError
impl Clone for RootsConfig
impl Clone for PrefilterConfig
impl Clone for CompressionStrategy
impl Clone for TDEFLFlush
impl Clone for TDEFLStatus
impl Clone for CompressionLevel
impl Clone for DataFormat
impl Clone for MZError
impl Clone for MZFlush
impl Clone for MZStatus
impl Clone for TINFLStatus
impl Clone for nom::error::ErrorKind
impl Clone for Needed
impl Clone for Endianness
impl Clone for Sign
impl Clone for Primality
impl Clone for BernoulliError
impl Clone for WeightedError
impl Clone for IndexVec
impl Clone for IndexVecIntoIter
impl Clone for RoundingStrategy
impl Clone for rust_decimal::error::Error
impl Clone for Category
impl Clone for Value
impl Clone for CompressionMethod
impl Clone for bool
impl Clone for char
impl Clone for f16
impl Clone for f32
impl Clone for f64
impl Clone for f128
impl Clone for i8
impl Clone for i16
impl Clone for i32
impl Clone for i64
impl Clone for i128
impl Clone for isize
impl Clone for !
impl Clone for u8
impl Clone for u16
impl Clone for u32
impl Clone for u64
impl Clone for u128
impl Clone for usize
impl Clone for AirPrivateInput
impl Clone for AirPrivateInputSerializable
impl Clone for ModInput
impl Clone for ModInputInstance
impl Clone for ModInputMemoryVars
impl Clone for PrivateInputEcOp
impl Clone for PrivateInputKeccakState
impl Clone for PrivateInputPair
impl Clone for PrivateInputPoseidonState
impl Clone for PrivateInputSignature
impl Clone for PrivateInputValue
impl Clone for SignatureInput
impl Clone for DictManager
impl Clone for DictTracker
impl Clone for HintReference
impl Clone for ApTracking
impl Clone for Attribute
impl Clone for FlowTrackingData
impl Clone for HintLocation
impl Clone for HintParams
impl Clone for Identifier
impl Clone for InputFile
impl Clone for InstructionLocation
impl Clone for cairo_vm::serde::deserialize_program::Location
impl Clone for Member
impl Clone for Reference
impl Clone for ReferenceManager
impl Clone for ValueAddress
impl Clone for Felt
impl Clone for LowRatio
impl Clone for Instruction
impl Clone for CairoLayoutParams
impl Clone for RawCairoLayoutParams
impl Clone for Program
impl Clone for Relocatable
impl Clone for BitwiseBuiltinRunner
impl Clone for EcOpBuiltinRunner
impl Clone for HashBuiltinRunner
impl Clone for KeccakBuiltinRunner
impl Clone for ModBuiltinRunner
impl Clone for OutputBuiltinRunner
impl Clone for OutputBuiltinState
impl Clone for PoseidonBuiltinRunner
impl Clone for SegmentArenaBuiltinRunner
impl Clone for SignatureBuiltinRunner
impl Clone for CairoPie
impl Clone for CairoPieAdditionalData
impl Clone for CairoPieMemory
impl Clone for CairoPieMetadata
impl Clone for CairoPieVersion
impl Clone for OutputBuiltinAdditionalData
impl Clone for PublicMemoryPage
impl Clone for cairo_vm::vm::runners::cairo_pie::SegmentInfo
impl Clone for StrippedProgram
impl Clone for ExecutionResources
impl Clone for RunResources
impl Clone for cairo_vm::vm::runners::cairo_runner::SegmentInfo
impl Clone for RelocatedTraceEntry
impl Clone for TraceEntry
impl Clone for DeducedOperands
impl Clone for cairo_vm::with_std::alloc::AllocError
impl Clone for cairo_vm::with_std::alloc::Global
impl Clone for Layout
impl Clone for LayoutError
impl Clone for System
impl Clone for TypeId
impl Clone for cairo_vm::with_std::fmt::Error
impl Clone for DefaultHasher
impl Clone for cairo_vm::with_std::hash::RandomState
impl Clone for SipHasher
impl Clone for PhantomPinned
impl Clone for Assume
impl Clone for ParseFloatError
impl Clone for ParseIntError
impl Clone for TryFromIntError
impl Clone for RangeFull
impl Clone for cairo_vm::with_std::ptr::Alignment
impl Clone for ParseBoolError
impl Clone for Utf8Error
impl Clone for FromUtf8Error
impl Clone for RecvError
impl Clone for WaitTimeoutResult
impl Clone for Duration
impl Clone for TryFromFloatSecsError
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 TryFromSliceError
impl Clone for core::ascii::EscapeDefault
impl Clone for CharTryFromError
impl Clone for ParseCharError
impl Clone for DecodeUtf16Error
impl Clone for core::char::EscapeDebug
impl Clone for core::char::EscapeDefault
impl Clone for core::char::EscapeUnicode
impl Clone for ToLowercase
impl Clone for ToUppercase
impl Clone for TryFromCharError
impl Clone for CpuidResult
impl Clone for __m128
impl Clone for __m128bh
impl Clone for __m128d
impl Clone for __m128h
impl Clone for __m128i
impl Clone for __m256
impl Clone for __m256bh
impl Clone for __m256d
impl Clone for __m256h
impl Clone for __m256i
impl Clone for __m512
impl Clone for __m512bh
impl Clone for __m512d
impl Clone for __m512h
impl Clone for __m512i
impl Clone for bf16
impl Clone for FromBytesUntilNulError
impl Clone for FromBytesWithNulError
impl Clone for Ipv4Addr
impl Clone for Ipv6Addr
impl Clone for AddrParseError
impl Clone for SocketAddrV4
impl Clone for SocketAddrV6
impl Clone for LocalWaker
impl Clone for RawWakerVTable
impl Clone for Waker
impl Clone for OsString
impl Clone for FileTimes
impl Clone for FileType
impl Clone for Metadata
impl Clone for OpenOptions
impl Clone for Permissions
impl Clone for std::io::util::Empty
impl Clone for Sink
impl Clone for InvalidHandleError
impl Clone for NullHandleError
impl Clone for PathBuf
impl Clone for StripPrefixError
impl Clone for ExitCode
impl Clone for ExitStatus
impl Clone for ExitStatusError
impl Clone for Output
impl Clone for DefaultRandomSource
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 Adler32
impl Clone for allocator_api2::stable::alloc::global::Global
impl Clone for allocator_api2::stable::alloc::AllocError
impl Clone for allocator_api2::stable::boxed::Box<str>
impl Clone for allocator_api2::stable::raw_vec::TryReserveError
impl Clone for EmptyFlags
impl Clone for bincode::config::BigEndian
impl Clone for Fixint
impl Clone for bincode::config::LittleEndian
impl Clone for NoLimit
impl Clone for Varint
impl Clone for Lsb0
impl Clone for Msb0
impl Clone for Eager
impl Clone for block_buffer::Error
impl Clone for Lazy
impl Clone for Hasher
impl Clone for CtChoice
impl Clone for Limb
impl Clone for Reciprocal
impl Clone for InvalidLength
impl Clone for MacError
impl Clone for InvalidBufferSize
impl Clone for InvalidOutputSize
impl Clone for GzHeader
impl Clone for Compression
impl Clone for foldhash::fast::FoldHasher
impl Clone for foldhash::quality::FoldHasher
impl Clone for foldhash::seed::fast::FixedState
impl Clone for foldhash::seed::fast::RandomState
impl Clone for foldhash::seed::quality::FixedState
impl Clone for foldhash::seed::quality::RandomState
impl Clone for getrandom::error::Error
impl Clone for itoa::Buffer
impl Clone for PoseidonCairoStark252
impl Clone for BandersnatchCurve
impl Clone for FqConfig
impl Clone for Ed448Goldilocks
impl Clone for TinyJubJubEdwards
impl Clone for TinyJubJubMontgomery
impl Clone for BLS12377Curve
impl Clone for BLS12377FieldModulus
impl Clone for BLS12381Curve
impl Clone for lambdaworks_math::elliptic_curve::short_weierstrass::curves::bls12_381::default_types::FrConfig
impl Clone for BLS12381FieldModulus
impl Clone for Degree2ExtensionField
impl Clone for lambdaworks_math::elliptic_curve::short_weierstrass::curves::bls12_381::field_extension::LevelThreeResidue
impl Clone for lambdaworks_math::elliptic_curve::short_weierstrass::curves::bls12_381::field_extension::LevelTwoResidue
impl Clone for BLS12381AtePairing
impl Clone for BLS12381TwistCurve
impl Clone for BN254Curve
impl Clone for lambdaworks_math::elliptic_curve::short_weierstrass::curves::bn_254::default_types::FrConfig
impl Clone for BN254FieldModulus
impl Clone for BN254Residue
impl Clone for lambdaworks_math::elliptic_curve::short_weierstrass::curves::bn_254::field_extension::LevelThreeResidue
impl Clone for lambdaworks_math::elliptic_curve::short_weierstrass::curves::bn_254::field_extension::LevelTwoResidue
impl Clone for BN254TwistCurve
impl Clone for lambdaworks_math::elliptic_curve::short_weierstrass::curves::grumpkin::curve::FrConfig
impl Clone for GrumpkinCurve
impl Clone for GrumpkinFieldModulus
impl Clone for PallasCurve
impl Clone for StarkCurve
impl Clone for TestCurve1
impl Clone for TestCurveQuadraticNonResidue
impl Clone for TestCurve2
impl Clone for TestCurve2Modulus
impl Clone for TestCurve2QuadraticNonResidue
impl Clone for VestaCurve
impl Clone for MontgomeryConfigBabybear31PrimeField
impl Clone for MontgomeryConfigStark252PrimeField
impl Clone for MontgomeryConfigU64GoldilocksPrimeField
impl Clone for MontgomeryConfigMersenne31PrimeField
impl Clone for Mersenne31Complex
impl Clone for Mersenne31Field
impl Clone for P448GoldilocksPrimeField
impl Clone for U56x8
impl Clone for MontgomeryConfigPallas255PrimeField
impl Clone for Goldilocks64Field
impl Clone for MontgomeryConfigVesta255PrimeField
impl Clone for TestNonResidue
impl Clone for One
impl Clone for Three
impl Clone for Two
impl Clone for memchr::arch::all::packedpair::Finder
impl Clone for Pair
impl Clone for memchr::arch::all::rabinkarp::Finder
impl Clone for memchr::arch::all::rabinkarp::FinderRev
impl Clone for memchr::arch::all::twoway::Finder
impl Clone for memchr::arch::all::twoway::FinderRev
impl Clone for FinderBuilder
impl Clone for StreamResult
impl Clone for num_bigint::bigint::BigInt
impl Clone for RandomBits
impl Clone for UniformBigInt
impl Clone for UniformBigUint
impl Clone for BigUint
impl Clone for ParseBigIntError
impl Clone for udouble
impl Clone for FactorizationConfig
impl Clone for PrimalityTestConfig
impl Clone for G0
impl Clone for G1
impl Clone for GenericMachine
impl Clone for u32x4_generic
impl Clone for u64x2_generic
impl Clone for u128x1_generic
impl Clone for vec256_storage
impl Clone for vec512_storage
impl Clone for Bernoulli
impl Clone for Open01
impl Clone for OpenClosed01
impl Clone for Alphanumeric
impl Clone for Standard
impl Clone for UniformChar
impl Clone for UniformDuration
impl Clone for StepRng
impl Clone for SmallRng
impl Clone for StdRng
impl Clone for ThreadRng
impl Clone for ChaCha8Core
impl Clone for ChaCha8Rng
impl Clone for ChaCha12Core
impl Clone for ChaCha12Rng
impl Clone for ChaCha20Core
impl Clone for ChaCha20Rng
impl Clone for OsRng
impl Clone for Decimal
impl Clone for ryu::buffer::Buffer
impl Clone for IgnoredAny
impl Clone for serde::de::value::Error
impl Clone for serde_json::map::Map<String, Value>
impl Clone for Number
impl Clone for CompactFormatter
impl Clone for Sha256VarCore
impl Clone for Sha512VarCore
impl Clone for CShake128Core
impl Clone for CShake128ReaderCore
impl Clone for CShake256Core
impl Clone for CShake256ReaderCore
impl Clone for Keccak224Core
impl Clone for Keccak256Core
impl Clone for Keccak256FullCore
impl Clone for Keccak384Core
impl Clone for Keccak512Core
impl Clone for Sha3_224Core
impl Clone for Sha3_256Core
impl Clone for Sha3_384Core
impl Clone for Sha3_512Core
impl Clone for Shake128Core
impl Clone for Shake128ReaderCore
impl Clone for Shake256Core
impl Clone for Shake256ReaderCore
impl Clone for TurboShake128Core
impl Clone for TurboShake128ReaderCore
impl Clone for TurboShake256Core
impl Clone for TurboShake256ReaderCore
impl Clone for starknet_curve::ec_point::AffinePoint
impl Clone for starknet_curve::ec_point::ProjectivePoint
impl Clone for starknet_ff::FieldElement
impl Clone for starknet_types_core::curve::affine_point::AffinePoint
impl Clone for starknet_types_core::curve::projective_point::ProjectivePoint
impl Clone for NonZeroFelt
impl Clone for Choice
impl Clone for ATerm
impl Clone for B0
impl Clone for B1
impl Clone for Z0
impl Clone for Equal
impl Clone for Greater
impl Clone for Less
impl Clone for UTerm
impl Clone for Const
impl Clone for Mut
impl Clone for NullPtrError
impl Clone for DateTime
impl Clone for FileOptions
impl Clone for cairo_vm::stdlib::prelude::Box<str>
impl Clone for cairo_vm::stdlib::prelude::Box<CStr>
impl Clone for cairo_vm::stdlib::prelude::Box<OsStr>
impl Clone for cairo_vm::stdlib::prelude::Box<Path>
impl Clone for cairo_vm::stdlib::prelude::Box<dyn DynDigest>
impl Clone for String
impl Clone for vec128_storage
impl<'a> Clone for Utf8Pattern<'a>
impl<'a> Clone for Component<'a>
impl<'a> Clone for Prefix<'a>
impl<'a> Clone for Unexpected<'a>
impl<'a> Clone for Arguments<'a>
impl<'a> Clone for EscapeAscii<'a>
impl<'a> Clone for CharSearcher<'a>
impl<'a> Clone for cairo_vm::with_std::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 cairo_vm::with_std::str::EscapeDebug<'a>
impl<'a> Clone for cairo_vm::with_std::str::EscapeDefault<'a>
impl<'a> Clone for cairo_vm::with_std::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 Source<'a>
impl<'a> Clone for core::ffi::c_str::Bytes<'a>
impl<'a> Clone for core::panic::location::Location<'a>
impl<'a> Clone for IoSlice<'a>
impl<'a> Clone for Ancestors<'a>
impl<'a> Clone for Components<'a>
impl<'a> Clone for std::path::Iter<'a>
impl<'a> Clone for PrefixComponent<'a>
impl<'a> Clone for EncodeWide<'a>
impl<'a> Clone for anyhow::Chain<'a>
impl<'a> Clone for PrettyFormatter<'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, 'h> Clone for OneIter<'a, 'h>
impl<'a, 'h> Clone for ThreeIter<'a, 'h>
impl<'a, 'h> Clone for TwoIter<'a, 'h>
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, K> Clone for alloc::collections::btree::set::Cursor<'a, K>where
K: Clone + 'a,
impl<'a, K, V> Clone for lru::Iter<'a, K, V>
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 cairo_vm::with_std::str::RSplit<'a, P>
impl<'a, P> Clone for cairo_vm::with_std::str::RSplitN<'a, P>
impl<'a, P> Clone for RSplitTerminator<'a, P>
impl<'a, P> Clone for cairo_vm::with_std::str::Split<'a, P>
impl<'a, P> Clone for cairo_vm::with_std::str::SplitInclusive<'a, P>
impl<'a, P> Clone for cairo_vm::with_std::str::SplitN<'a, P>
impl<'a, P> Clone for SplitTerminator<'a, P>
impl<'a, T> Clone for cairo_vm::with_std::slice::RChunksExact<'a, T>
impl<'a, T> Clone for hashbrown::table::Iter<'a, T>
impl<'a, T> Clone for IterHash<'a, T>
impl<'a, T> Clone for Slice<'a, T>where
T: Clone,
impl<'a, T> Clone for Ptr<'a, T>where
T: ?Sized,
impl<'a, T, O> Clone for PartialElement<'a, Const, T, O>
impl<'a, T, O> Clone for bitvec::slice::iter::Chunks<'a, T, O>
impl<'a, T, O> Clone for bitvec::slice::iter::ChunksExact<'a, T, O>
impl<'a, T, O> Clone for IterOnes<'a, T, O>
impl<'a, T, O> Clone for IterZeros<'a, T, O>
impl<'a, T, O> Clone for bitvec::slice::iter::RChunks<'a, T, O>
impl<'a, T, O> Clone for bitvec::slice::iter::RChunksExact<'a, T, O>
impl<'a, T, O> Clone for bitvec::slice::iter::Windows<'a, T, O>
impl<'a, T, O, P> Clone for bitvec::slice::iter::RSplit<'a, T, O, P>
impl<'a, T, O, P> Clone for bitvec::slice::iter::RSplitN<'a, T, O, P>
impl<'a, T, O, P> Clone for bitvec::slice::iter::Split<'a, T, O, P>
impl<'a, T, O, P> Clone for bitvec::slice::iter::SplitInclusive<'a, T, O, P>
impl<'a, T, O, P> Clone for bitvec::slice::iter::SplitN<'a, T, O, P>
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<'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<'h> Clone for Memchr2<'h>
impl<'h> Clone for Memchr3<'h>
impl<'h> Clone for Memchr<'h>
impl<'h, 'n> Clone for FindIter<'h, 'n>
impl<'h, 'n> Clone for FindRevIter<'h, 'n>
impl<'handle> Clone for BorrowedHandle<'handle>
impl<'n> Clone for memchr::memmem::Finder<'n>
impl<'n> Clone for memchr::memmem::FinderRev<'n>
impl<'socket> Clone for BorrowedSocket<'socket>
impl<A> Clone for Repeat<A>where
A: Clone,
impl<A> Clone for RepeatN<A>where
A: Clone,
impl<A> Clone for core::option::IntoIter<A>where
A: Clone,
impl<A> Clone for core::option::Iter<'_, A>
impl<A> Clone for IterRange<A>where
A: Clone,
impl<A> Clone for IterRangeFrom<A>where
A: Clone,
impl<A> Clone for IterRangeInclusive<A>where
A: Clone,
impl<A> Clone for ExtendedGcd<A>where
A: Clone,
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 cairo_vm::with_std::iter::Chain<A, B>
impl<A, B> Clone for Zip<A, B>
impl<A, O> Clone for bitvec::array::iter::IntoIter<A, O>
impl<A, O> Clone for BitArray<A, O>where
A: BitViewSized,
O: BitOrder,
impl<B> Clone for Cow<'_, B>
impl<B> Clone for MerkleTree<B>
impl<B, C> Clone for ControlFlow<B, C>
impl<BlockSize, Kind> Clone for BlockBuffer<BlockSize, Kind>
impl<D> Clone for HmacCore<D>where
D: CoreProxy,
<D as CoreProxy>::Core: HashMarker + UpdateCore + FixedOutputCore<BufferKind = Eager> + BufferKindUser + Default + Clone,
<<D as CoreProxy>::Core as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>,
<<<D as CoreProxy>::Core as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,
impl<D> Clone for SimpleHmac<D>
impl<Dyn> Clone for DynMetadata<Dyn>where
Dyn: ?Sized,
impl<E> Clone for Err<E>where
E: Clone,
impl<E> Clone for EdwardsProjectivePoint<E>where
E: Clone + IsEllipticCurve,
impl<E> Clone for MontgomeryProjectivePoint<E>where
E: Clone + IsEllipticCurve,
impl<E> Clone for lambdaworks_math::elliptic_curve::point::ProjectivePoint<E>
impl<E> Clone for ShortWeierstrassProjectivePoint<E>where
E: Clone + IsEllipticCurve,
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<E, I, L> Clone for Configuration<E, I, L>
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<F> Clone for lambdaworks_math::field::element::FieldElement<F>
impl<F> Clone for DenseMultilinearPolynomial<F>
impl<F, D, const NUM_BYTES: usize> Clone for FieldElementBackend<F, D, NUM_BYTES>
impl<F, D, const NUM_BYTES: usize> Clone for FieldElementVectorBackend<F, D, NUM_BYTES>
impl<F, P> Clone for KateZaveruchaGoldberg<F, P>
impl<F, T> Clone for CubicExtensionField<F, T>
impl<F, T> Clone for QuadraticExtensionField<F, T>
impl<FE> Clone for Polynomial<FE>where
FE: Clone,
impl<G1Point, G2Point> Clone for StructuredReferenceString<G1Point, G2Point>
impl<H> Clone for BuildHasherDefault<H>
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> Clone for FromIter<I>where
I: Clone,
impl<I> Clone for DecodeUtf16<I>
impl<I> Clone for ark_std::iterable::rev::Reverse<I>
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 cairo_vm::with_std::iter::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, M> Clone for Montgomery<I, M>
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 cairo_vm::with_std::iter::ArrayChunks<I, N>
impl<Idx> Clone for cairo_vm::with_std::ops::Range<Idx>where
Idx: Clone,
impl<Idx> Clone for cairo_vm::with_std::ops::RangeFrom<Idx>where
Idx: Clone,
impl<Idx> Clone for cairo_vm::with_std::ops::RangeInclusive<Idx>where
Idx: Clone,
impl<Idx> Clone for RangeTo<Idx>where
Idx: Clone,
impl<Idx> Clone for RangeToInclusive<Idx>where
Idx: Clone,
impl<Idx> Clone for core::range::Range<Idx>where
Idx: Clone,
impl<Idx> Clone for core::range::RangeFrom<Idx>where
Idx: Clone,
impl<Idx> Clone for core::range::RangeInclusive<Idx>where
Idx: Clone,
impl<Inner> Clone for Frozen<Inner>where
Inner: Clone + Mutability,
impl<K> Clone for std::collections::hash::set::Iter<'_, K>
impl<K> Clone for hashbrown::set::Iter<'_, K>
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 LruCache<K, V>
impl<K, V, A> Clone for BTreeMap<K, V, A>
impl<K, V, S> Clone for cairo_vm::with_std::collections::HashMap<K, V, S>
impl<K, V, S, A> Clone for hashbrown::map::HashMap<K, V, S, A>
impl<L, R> Clone for Either<L, R>
impl<L, R> Clone for IterEither<L, R>
impl<M, T> Clone for Address<M, T>where
M: Mutability,
T: ?Sized,
impl<M, T, O> Clone for BitPtrRange<M, T, O>
impl<M, T, O> Clone for BitPtr<M, T, O>
impl<M, const NUM_LIMBS: usize> Clone for MontgomeryBackendPrimeField<M, NUM_LIMBS>where
M: Clone,
impl<MOD, const LIMBS: usize> Clone for Residue<MOD, LIMBS>where
MOD: Clone + ResidueParams<LIMBS>,
impl<O> Clone for F32<O>where
O: Clone,
impl<O> Clone for F64<O>where
O: Clone,
impl<O> Clone for I16<O>where
O: Clone,
impl<O> Clone for I32<O>where
O: Clone,
impl<O> Clone for I64<O>where
O: Clone,
impl<O> Clone for I128<O>where
O: Clone,
impl<O> Clone for U16<O>where
O: Clone,
impl<O> Clone for U32<O>where
O: Clone,
impl<O> Clone for U64<O>where
O: Clone,
impl<O> Clone for U128<O>where
O: Clone,
impl<P> Clone for CubicExtField<P>where
P: CubicExtConfig,
impl<P> Clone for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Clone for TreePoseidon<P>
impl<P> Clone for BatchPoseidonTree<P>
impl<P, const N: usize> Clone for Fp<P, N>where
P: FpConfig<N>,
impl<Ptr> Clone for Pin<Ptr>where
Ptr: Clone,
impl<R> Clone for BitEnd<R>where
R: Clone + BitRegister,
impl<R> Clone for BitIdx<R>where
R: Clone + BitRegister,
impl<R> Clone for BitIdxError<R>where
R: Clone + BitRegister,
impl<R> Clone for BitMask<R>where
R: Clone + BitRegister,
impl<R> Clone for BitPos<R>where
R: Clone + BitRegister,
impl<R> Clone for BitSel<R>where
R: Clone + BitRegister,
impl<R> Clone for BlockRng64<R>
impl<R> Clone for BlockRng<R>
impl<R> Clone for ZipArchive<R>where
R: Clone,
impl<R, Rsdr> Clone for ReseedingRng<R, Rsdr>
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 SendTimeoutError<T>where
T: Clone,
impl<T> Clone for TrySendError<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 BitPtrError<T>
impl<T> Clone for BitSpanError<T>
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!