pub trait Clone {
fn clone(&self) -> Self;
fn clone_from(&mut self, source: &Self) { ... }
}
Expand description
A common trait for the ability to explicitly duplicate an object.
Differs from Copy
in that Copy
is implicit and an inexpensive bit-wise copy, while
Clone
is always explicit and may or may not be expensive. In order to enforce
these characteristics, Rust does not allow you to reimplement Copy
, but you
may reimplement Clone
and run arbitrary code.
Since Clone
is more general than Copy
, you can automatically make anything
Copy
be Clone
as well.
Derivable
This trait can be used with #[derive]
if all fields are Clone
. The derive
d
implementation of Clone
calls clone
on each field.
For a generic struct, #[derive]
implements Clone
conditionally by adding bound Clone
on
generic parameters.
// `derive` implements Clone for Reading<T> when T is Clone.
#[derive(Clone)]
struct Reading<T> {
frequency: T,
}
How can I implement Clone
?
Types that are Copy
should have a trivial implementation of Clone
. More formally:
if T: Copy
, x: T
, and y: &T
, then let x = y.clone();
is equivalent to let x = *y;
.
Manual implementations should be careful to uphold this invariant; however, unsafe code
must not rely on it to ensure memory safety.
An example is a generic struct holding a function pointer. In this case, the
implementation of Clone
cannot be derive
d, but can be implemented as:
struct Generate<T>(fn() -> T);
impl<T> Copy for Generate<T> {}
impl<T> Clone for Generate<T> {
fn clone(&self) -> Self {
*self
}
}
Additional implementors
In addition to the implementors listed below,
the following types also implement Clone
:
- Function item types (i.e., the distinct types defined for each function)
- Function pointer types (e.g.,
fn() -> i32
) - Tuple types, if each component also implements
Clone
(e.g.,()
,(i32, bool)
) - 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
fn 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.
Implementations on Foreign Types
sourceimpl<'a> Clone for Components<'a>
impl<'a> Clone for Components<'a>
fn clone(&self) -> Components<'a>ⓘNotable traits for Components<'a>impl<'a> Iterator for Components<'a> type Item = Component<'a>;
sourceimpl Clone for BacktraceStyle
impl Clone for BacktraceStyle
fn clone(&self) -> BacktraceStyle
sourceimpl Clone for SocketAddrV4
impl Clone for SocketAddrV4
fn clone(&self) -> SocketAddrV4
sourceimpl<'_, T, S> Clone for Intersection<'_, T, S>
impl<'_, T, S> Clone for Intersection<'_, T, S>
fn clone(&self) -> Intersection<'_, T, S>ⓘNotable traits for Intersection<'a, T, S>impl<'a, T, S> Iterator for Intersection<'a, T, S> where
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
sourceimpl Clone for ExitStatus
impl Clone for ExitStatus
fn clone(&self) -> ExitStatus
sourceimpl<'_, T, S> Clone for Difference<'_, T, S>
impl<'_, T, S> Clone for Difference<'_, T, S>
fn clone(&self) -> Difference<'_, T, S>ⓘNotable traits for Difference<'a, T, S>impl<'a, T, S> Iterator for Difference<'a, T, S> where
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
1.7.0 · sourceimpl Clone for IntoStringError
impl Clone for IntoStringError
fn clone(&self) -> IntoStringError
1.10.0 · sourceimpl Clone for FromBytesWithNulError
impl Clone for FromBytesWithNulError
fn clone(&self) -> FromBytesWithNulError
sourceimpl<'a> Clone for PrefixComponent<'a>
impl<'a> Clone for PrefixComponent<'a>
fn clone(&self) -> PrefixComponent<'a>
sourceimpl Clone for ExitStatusError
impl Clone for ExitStatusError
fn clone(&self) -> ExitStatusError
sourceimpl<T> Clone for SyncOnceCell<T> where
T: Clone,
impl<T> Clone for SyncOnceCell<T> where
T: Clone,
fn clone(&self) -> SyncOnceCell<T>
sourceimpl Clone for SocketAddrV6
impl Clone for SocketAddrV6
fn clone(&self) -> SocketAddrV6
1.5.0 · sourceimpl Clone for WaitTimeoutResult
impl Clone for WaitTimeoutResult
fn clone(&self) -> WaitTimeoutResult
1.7.0 · sourceimpl Clone for StripPrefixError
impl Clone for StripPrefixError
fn clone(&self) -> StripPrefixError
1.29.0 · sourceimpl Clone for Box<Path, Global>
impl Clone for Box<Path, Global>
fn clone(&self) -> Box<Path, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
sourceimpl<'_, T, S> Clone for SymmetricDifference<'_, T, S>
impl<'_, T, S> Clone for SymmetricDifference<'_, T, S>
fn clone(&self) -> SymmetricDifference<'_, T, S>ⓘNotable traits for SymmetricDifference<'a, T, S>impl<'a, T, S> Iterator for SymmetricDifference<'a, T, S> where
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
1.29.0 · sourceimpl Clone for Box<CStr, Global>
impl Clone for Box<CStr, Global>
fn clone(&self) -> Box<CStr, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
sourceimpl Clone for Ipv6MulticastScope
impl Clone for Ipv6MulticastScope
fn clone(&self) -> Ipv6MulticastScope
1.58.0 · sourceimpl Clone for FromVecWithNulError
impl Clone for FromVecWithNulError
fn clone(&self) -> FromVecWithNulError
sourceimpl Clone for AddrParseError
impl Clone for AddrParseError
fn clone(&self) -> AddrParseError
1.29.0 · sourceimpl Clone for Box<OsStr, Global>
impl Clone for Box<OsStr, Global>
fn clone(&self) -> Box<OsStr, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
const: unstable · sourceimpl<'_, T> Clone for &'_ T where
T: ?Sized,
impl<'_, T> Clone for &'_ T where
T: ?Sized,
Shared references can be cloned, but mutable references cannot!
sourceimpl<Dyn> Clone for DynMetadata<Dyn> where
Dyn: ?Sized,
impl<Dyn> Clone for DynMetadata<Dyn> where
Dyn: ?Sized,
fn clone(&self) -> DynMetadata<Dyn>
impl<'_, T> !Clone for &'_ mut T where
T: ?Sized,
Shared references can be cloned, but mutable references cannot!
sourceimpl<T> Clone for BinaryHeap<T> where
T: Clone,
impl<T> Clone for BinaryHeap<T> where
T: Clone,
fn clone(&self) -> BinaryHeap<T>
fn clone_from(&mut self, source: &BinaryHeap<T>)
1.57.0 · sourceimpl Clone for TryReserveError
impl Clone for TryReserveError
fn clone(&self) -> TryReserveError
sourceimpl Clone for FromUtf8Error
impl Clone for FromUtf8Error
fn clone(&self) -> FromUtf8Error
1.3.0 · sourceimpl<T, A> Clone for Box<[T], A> where
T: Clone,
A: Allocator + Clone,
impl<T, A> Clone for Box<[T], A> where
T: Clone,
A: Allocator + Clone,
fn clone(&self) -> Box<[T], A>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
fn clone_from(&mut self, other: &Box<[T], A>)
sourceimpl<T> Clone for IntoIterSorted<T> where
T: Clone,
impl<T> Clone for IntoIterSorted<T> where
T: Clone,
fn clone(&self) -> IntoIterSorted<T>ⓘNotable traits for IntoIterSorted<T>impl<T> Iterator for IntoIterSorted<T> where
T: Ord, type Item = T;
T: Ord, type Item = T;
sourceimpl<T, A> Clone for Box<T, A> where
T: Clone,
A: Allocator + Clone,
impl<T, A> Clone for Box<T, A> where
T: Clone,
A: Allocator + Clone,
sourcefn clone(&self) -> Box<T, A>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
fn clone(&self) -> Box<T, A>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
Returns a new box with a clone()
of this box’s contents.
Examples
let x = Box::new(5);
let y = x.clone();
// The value is the same
assert_eq!(x, y);
// But they are unique objects
assert_ne!(&*x as *const i32, &*y as *const i32);
sourcefn clone_from(&mut self, source: &Box<T, A>)
fn clone_from(&mut self, source: &Box<T, A>)
Copies source
’s contents into self
without creating a new allocation.
Examples
let x = Box::new(5);
let mut y = Box::new(10);
let yp: *const i32 = &*y;
y.clone_from(&x);
// The value is the same
assert_eq!(x, y);
// And no allocation occurred
assert_eq!(yp, &*y);
sourceimpl Clone for TryReserveErrorKind
impl Clone for TryReserveErrorKind
fn clone(&self) -> TryReserveErrorKind
1.3.0 · sourceimpl Clone for Box<str, Global>
impl Clone for Box<str, Global>
fn clone(&self) -> Box<str, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
sourceimpl<T> Clone for LinkedList<T> where
T: Clone,
impl<T> Clone for LinkedList<T> where
T: Clone,
fn clone(&self) -> LinkedList<T>
fn clone_from(&mut self, other: &LinkedList<T>)
sourceimpl Clone for _Unwind_Action
impl Clone for _Unwind_Action
fn clone(&self) -> _Unwind_Action
sourceimpl Clone for _Unwind_Reason_Code
impl Clone for _Unwind_Reason_Code
fn clone(&self) -> _Unwind_Reason_Code
sourceimpl Clone for SenderError
impl Clone for SenderError
fn clone(&self) -> SenderError
sourceimpl Clone for SshFingerprint
impl Clone for SshFingerprint
fn clone(&self) -> SshFingerprint
sourceimpl Clone for MgmtPlayerInfo
impl Clone for MgmtPlayerInfo
fn clone(&self) -> MgmtPlayerInfo
sourceimpl Clone for MgmtGamePieceVisibleInfo
impl Clone for MgmtGamePieceVisibleInfo
fn clone(&self) -> MgmtGamePieceVisibleInfo
sourceimpl Clone for MgmtThisConnAuthBy
impl Clone for MgmtThisConnAuthBy
fn clone(&self) -> MgmtThisConnAuthBy
sourceimpl Clone for MgmtGamePieceInfo
impl Clone for MgmtGamePieceInfo
fn clone(&self) -> MgmtGamePieceInfo
sourceimpl Clone for MgmtGameResponseGameInfo
impl Clone for MgmtGameResponseGameInfo
fn clone(&self) -> MgmtGameResponseGameInfo
impl Clone for Box<dyn DynDigest + 'static, Global>
impl Clone for Box<dyn DynDigest + 'static, Global>
fn clone(&self) -> Box<dyn DynDigest + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
impl<BlockSize> Clone for BlockBuffer<BlockSize> where
BlockSize: Clone + ArrayLength<u8>,
impl<BlockSize> Clone for BlockBuffer<BlockSize> where
BlockSize: Clone + ArrayLength<u8>,
fn clone(&self) -> BlockBuffer<BlockSize>
impl Clone for Sha512Trunc224
impl Clone for Sha512Trunc224
impl Clone for Sha512Trunc256
impl Clone for Sha512Trunc256
sourceimpl<FORMAT, STRICTNESS> Clone for DurationMicroSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for DurationMicroSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> DurationMicroSeconds<FORMAT, STRICTNESS>
sourceimpl Clone for BytesOrString
impl Clone for BytesOrString
fn clone(&self) -> BytesOrString
sourceimpl<FORMAT, STRICTNESS> Clone for TimestampMicroSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for TimestampMicroSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> TimestampMicroSecondsWithFrac<FORMAT, STRICTNESS>
sourceimpl<FORMAT, STRICTNESS> Clone for TimestampMilliSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for TimestampMilliSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> TimestampMilliSeconds<FORMAT, STRICTNESS>
sourceimpl<T> Clone for TryFromInto<T> where
T: Clone,
impl<T> Clone for TryFromInto<T> where
T: Clone,
fn clone(&self) -> TryFromInto<T>
sourceimpl<FORMAT, STRICTNESS> Clone for TimestampSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for TimestampSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> TimestampSecondsWithFrac<FORMAT, STRICTNESS>
sourceimpl Clone for SpaceSeparator
impl Clone for SpaceSeparator
fn clone(&self) -> SpaceSeparator
sourceimpl Clone for CommaSeparator
impl Clone for CommaSeparator
fn clone(&self) -> CommaSeparator
sourceimpl<FORMAT, STRICTNESS> Clone for DurationMilliSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for DurationMilliSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> DurationMilliSeconds<FORMAT, STRICTNESS>
sourceimpl<FORMAT, STRICTNESS> Clone for TimestampSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for TimestampSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> TimestampSeconds<FORMAT, STRICTNESS>
sourceimpl<T> Clone for DefaultOnNull<T> where
T: Clone,
impl<T> Clone for DefaultOnNull<T> where
T: Clone,
fn clone(&self) -> DefaultOnNull<T>
sourceimpl<FORMAT, STRICTNESS> Clone for TimestampNanoSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for TimestampNanoSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> TimestampNanoSecondsWithFrac<FORMAT, STRICTNESS>
sourceimpl<T> Clone for VecSkipError<T> where
T: Clone,
impl<T> Clone for VecSkipError<T> where
T: Clone,
fn clone(&self) -> VecSkipError<T>
sourceimpl<FORMAT, STRICTNESS> Clone for TimestampNanoSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for TimestampNanoSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> TimestampNanoSeconds<FORMAT, STRICTNESS>
sourceimpl<FORMAT, STRICTNESS> Clone for DurationMilliSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for DurationMilliSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> DurationMilliSecondsWithFrac<FORMAT, STRICTNESS>
sourceimpl<T> Clone for DefaultOnError<T> where
T: Clone,
impl<T> Clone for DefaultOnError<T> where
T: Clone,
fn clone(&self) -> DefaultOnError<T>
sourceimpl<Sep, T> Clone for StringWithSeparator<Sep, T> where
Sep: Clone,
T: Clone,
impl<Sep, T> Clone for StringWithSeparator<Sep, T> where
Sep: Clone,
T: Clone,
fn clone(&self) -> StringWithSeparator<Sep, T>
sourceimpl<FORMAT, STRICTNESS> Clone for DurationSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for DurationSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> DurationSeconds<FORMAT, STRICTNESS>
sourceimpl Clone for NoneAsEmptyString
impl Clone for NoneAsEmptyString
fn clone(&self) -> NoneAsEmptyString
sourceimpl<FORMAT, STRICTNESS> Clone for TimestampMicroSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for TimestampMicroSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> TimestampMicroSeconds<FORMAT, STRICTNESS>
sourceimpl Clone for PreferMany
impl Clone for PreferMany
fn clone(&self) -> PreferMany
sourceimpl<FORMAT, STRICTNESS> Clone for DurationNanoSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for DurationNanoSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> DurationNanoSecondsWithFrac<FORMAT, STRICTNESS>
sourceimpl<FORMAT, STRICTNESS> Clone for DurationNanoSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for DurationNanoSeconds<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> DurationNanoSeconds<FORMAT, STRICTNESS>
sourceimpl<FORMAT, STRICTNESS> Clone for DurationMicroSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for DurationMicroSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> DurationMicroSecondsWithFrac<FORMAT, STRICTNESS>
sourceimpl Clone for DisplayFromStr
impl Clone for DisplayFromStr
fn clone(&self) -> DisplayFromStr
sourceimpl<FORMAT, STRICTNESS> Clone for TimestampMilliSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for TimestampMilliSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> TimestampMilliSecondsWithFrac<FORMAT, STRICTNESS>
sourceimpl<FORMAT, STRICTNESS> Clone for DurationSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
impl<FORMAT, STRICTNESS> Clone for DurationSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Clone + Format,
STRICTNESS: Clone + Strictness,
fn clone(&self) -> DurationSecondsWithFrac<FORMAT, STRICTNESS>
impl<A> Clone for SmallVec<A> where
A: Array,
<A as Array>::Item: Clone,
impl<A> Clone for SmallVec<A> where
A: Array,
<A as Array>::Item: Clone,
fn clone(&self) -> SmallVec<A>
fn clone_from(&mut self, source: &SmallVec<A>)
impl<'entries, EntryData> Clone for Iter<'entries, EntryData>
impl<'entries, EntryData> Clone for Iter<'entries, EntryData>
impl<EntryData> Clone for VecList<EntryData> where
EntryData: Clone,
impl<EntryData> Clone for VecList<EntryData> where
EntryData: Clone,
fn clone(&self) -> VecList<EntryData>
impl<'_, EntryData> Clone for Indices<'_, EntryData>
impl<'_, EntryData> Clone for Indices<'_, EntryData>
sourceimpl Clone for SteadyTime
impl Clone for SteadyTime
fn clone(&self) -> SteadyTime
sourceimpl Clone for ParseError
impl Clone for ParseError
fn clone(&self) -> ParseError
sourceimpl Clone for OutOfRangeError
impl Clone for OutOfRangeError
fn clone(&self) -> OutOfRangeError
sourceimpl Clone for PreciseTime
impl Clone for PreciseTime
fn clone(&self) -> PreciseTime
sourceimpl<A> Clone for ExtendedGcd<A> where
A: Clone,
impl<A> Clone for ExtendedGcd<A> where
A: Clone,
fn clone(&self) -> ExtendedGcd<A>
sourceimpl Clone for Box<dyn DynDigest + 'static, Global>
impl Clone for Box<dyn DynDigest + 'static, Global>
fn clone(&self) -> Box<dyn DynDigest + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
sourceimpl Clone for FormattedDuration
impl Clone for FormattedDuration
fn clone(&self) -> FormattedDuration
sourceimpl Clone for Rfc3339Timestamp
impl Clone for Rfc3339Timestamp
fn clone(&self) -> Rfc3339Timestamp
impl<'a, S> Clone for ANSIGenericString<'a, S> where
S: 'a + ToOwned + ?Sized,
<S as ToOwned>::Owned: Debug,
impl<'a, S> Clone for ANSIGenericString<'a, S> where
S: 'a + ToOwned + ?Sized,
<S as ToOwned>::Owned: Debug,
Cloning an ANSIGenericString
will clone its underlying string.
Examples
use ansi_term::ANSIString;
let plain_string = ANSIString::from("a plain string");
let clone_string = plain_string.clone();
assert_eq!(clone_string, plain_string);
fn clone(&self) -> ANSIGenericString<'a, S>
sourceimpl Clone for SetReadiness
impl Clone for SetReadiness
fn clone(&self) -> SetReadiness
impl<'a, T> Clone for Iter<'a, T>
impl<'a, T> Clone for Iter<'a, T>
impl<T> Clone for AtomicLazyCell<T> where
T: Clone,
impl<T> Clone for AtomicLazyCell<T> where
T: Clone,
fn clone(&self) -> AtomicLazyCell<T>
fn clone(&self) -> AtomicLazyCell<T>
Create a clone of this AtomicLazyCell
If self has not been initialized, returns an uninitialized AtomicLazyCell
otherwise returns an AtomicLazyCell
already initialized with a clone of the
contents of self.
impl<T> Clone for LazyCell<T> where
T: Clone,
impl<T> Clone for LazyCell<T> where
T: Clone,
fn clone(&self) -> LazyCell<T>
fn clone(&self) -> LazyCell<T>
Create a clone of this LazyCell
If self has not been initialized, returns an uninitialized LazyCell
otherwise returns a LazyCell
already initialized with a clone of the
contents of self.
impl<I, T> Clone for Box<IndexSlice<I, [T]>, Global> where
I: Idx,
T: Clone,
impl<I, T> Clone for Box<IndexSlice<I, [T]>, Global> where
I: Idx,
T: Clone,
fn clone(&self) -> Box<IndexSlice<I, [T]>, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
sourceimpl Clone for BacktraceSymbol
impl Clone for BacktraceSymbol
fn clone(&self) -> BacktraceSymbol
sourceimpl Clone for BacktraceFrame
impl Clone for BacktraceFrame
fn clone(&self) -> BacktraceFrame
impl<R, Offset> Clone for CompleteLineProgram<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for CompleteLineProgram<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> CompleteLineProgram<R, Offset>
impl<'abbrev, 'unit, R> Clone for EntriesRaw<'abbrev, 'unit, R> where
R: Clone + Reader,
impl<'abbrev, 'unit, R> Clone for EntriesRaw<'abbrev, 'unit, R> where
R: Clone + Reader,
fn clone(&self) -> EntriesRaw<'abbrev, 'unit, R>
impl<'bases, Section, R> Clone for CieOrFde<'bases, Section, R> where
Section: Clone + UnwindSection<R>,
R: Clone + Reader,
impl<'bases, Section, R> Clone for CieOrFde<'bases, Section, R> where
Section: Clone + UnwindSection<R>,
R: Clone + Reader,
fn clone(&self) -> CieOrFde<'bases, Section, R>
impl<R> Clone for LocationListEntry<R> where
R: Clone + Reader,
impl<R> Clone for LocationListEntry<R> where
R: Clone + Reader,
fn clone(&self) -> LocationListEntry<R>
impl<R, Offset> Clone for CommonInformationEntry<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for CommonInformationEntry<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> CommonInformationEntry<R, Offset>
impl<R, Program, Offset> Clone for LineRows<R, Program, Offset> where
R: Clone + Reader<Offset = Offset>,
Program: Clone + LineProgram<R, Offset>,
Offset: Clone + ReaderOffset,
impl<R, Program, Offset> Clone for LineRows<R, Program, Offset> where
R: Clone + Reader<Offset = Offset>,
Program: Clone + LineProgram<R, Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> LineRows<R, Program, Offset>
impl<R, Offset> Clone for Operation<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for Operation<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> Operation<R, Offset>
impl<'abbrev, 'unit, R> Clone for EntriesTree<'abbrev, 'unit, R> where
R: Clone + Reader,
impl<'abbrev, 'unit, R> Clone for EntriesTree<'abbrev, 'unit, R> where
R: Clone + Reader,
fn clone(&self) -> EntriesTree<'abbrev, 'unit, R>
impl<'a, R> Clone for CallFrameInstructionIter<'a, R> where
R: Clone + Reader,
impl<'a, R> Clone for CallFrameInstructionIter<'a, R> where
R: Clone + Reader,
fn clone(&self) -> CallFrameInstructionIter<'a, R>
impl<R, Offset> Clone for Location<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for Location<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> Location<R, Offset>
impl<'a, R> Clone for EhHdrTable<'a, R> where
R: Clone + Reader,
impl<'a, R> Clone for EhHdrTable<'a, R> where
R: Clone + Reader,
fn clone(&self) -> EhHdrTable<'a, R>
impl<R, A> Clone for UnwindContext<R, A> where
R: Clone + Reader,
A: Clone + UnwindContextStorage<R>,
<A as UnwindContextStorage<R>>::Stack: Clone,
impl<R, A> Clone for UnwindContext<R, A> where
R: Clone + Reader,
A: Clone + UnwindContextStorage<R>,
<A as UnwindContextStorage<R>>::Stack: Clone,
fn clone(&self) -> UnwindContext<R, A>
impl<R> Clone for ArangeHeaderIter<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
impl<R> Clone for ArangeHeaderIter<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
fn clone(&self) -> ArangeHeaderIter<R>
impl<R, Offset> Clone for AttributeValue<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for AttributeValue<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> AttributeValue<R, Offset>
impl<R, S> Clone for UnwindTableRow<R, S> where
R: Reader,
S: UnwindContextStorage<R>,
impl<R, S> Clone for UnwindTableRow<R, S> where
R: Reader,
S: UnwindContextStorage<R>,
fn clone(&self) -> UnwindTableRow<R, S>
impl<R> Clone for CallFrameInstruction<R> where
R: Clone + Reader,
impl<R> Clone for CallFrameInstruction<R> where
R: Clone + Reader,
fn clone(&self) -> CallFrameInstruction<R>
impl<R, Offset> Clone for LineInstruction<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for LineInstruction<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> LineInstruction<R, Offset>
impl<R, Offset> Clone for LineProgramHeader<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for LineProgramHeader<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> LineProgramHeader<R, Offset>
impl<R, Offset> Clone for IncompleteLineProgram<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for IncompleteLineProgram<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> IncompleteLineProgram<R, Offset>
impl<R> Clone for PubTypesEntryIter<R> where
R: Clone + Reader,
impl<R> Clone for PubTypesEntryIter<R> where
R: Clone + Reader,
fn clone(&self) -> PubTypesEntryIter<R>
impl<'abbrev, 'entry, 'unit, R> Clone for AttrsIter<'abbrev, 'entry, 'unit, R> where
R: Clone + Reader,
impl<'abbrev, 'entry, 'unit, R> Clone for AttrsIter<'abbrev, 'entry, 'unit, R> where
R: Clone + Reader,
fn clone(&self) -> AttrsIter<'abbrev, 'entry, 'unit, R>
impl<'bases, Section, R> Clone for CfiEntriesIter<'bases, Section, R> where
Section: Clone + UnwindSection<R>,
R: Clone + Reader,
impl<'bases, Section, R> Clone for CfiEntriesIter<'bases, Section, R> where
Section: Clone + UnwindSection<R>,
R: Clone + Reader,
fn clone(&self) -> CfiEntriesIter<'bases, Section, R>
impl<R, Offset> Clone for ArangeHeader<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for ArangeHeader<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> ArangeHeader<R, Offset>
impl<'input, Endian> Clone for EndianSlice<'input, Endian> where
Endian: Clone + Endianity,
impl<'input, Endian> Clone for EndianSlice<'input, Endian> where
Endian: Clone + Endianity,
fn clone(&self) -> EndianSlice<'input, Endian>
impl<T> Clone for DebugStrOffsetsIndex<T> where
T: Clone,
impl<T> Clone for DebugStrOffsetsIndex<T> where
T: Clone,
fn clone(&self) -> DebugStrOffsetsIndex<T>
impl<Offset> Clone for UnitType<Offset> where
Offset: Clone + ReaderOffset,
impl<Offset> Clone for UnitType<Offset> where
Offset: Clone + ReaderOffset,
fn clone(&self) -> UnitType<Offset>
impl<R> Clone for RawLocListEntry<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
impl<R> Clone for RawLocListEntry<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
fn clone(&self) -> RawLocListEntry<R>
impl<R, Offset> Clone for Piece<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for Piece<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> Piece<R, Offset>
impl<R> Clone for PubNamesEntryIter<R> where
R: Clone + Reader,
impl<R> Clone for PubNamesEntryIter<R> where
R: Clone + Reader,
fn clone(&self) -> PubNamesEntryIter<R>
impl<R, Offset> Clone for FileEntry<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for FileEntry<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> FileEntry<R, Offset>
impl<R, Offset> Clone for UnitHeader<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for UnitHeader<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> UnitHeader<R, Offset>
impl<R> Clone for DebugInfoUnitHeadersIter<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
impl<R> Clone for DebugInfoUnitHeadersIter<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
fn clone(&self) -> DebugInfoUnitHeadersIter<R>
impl<'abbrev, 'unit, R> Clone for EntriesCursor<'abbrev, 'unit, R> where
R: Clone + Reader,
impl<'abbrev, 'unit, R> Clone for EntriesCursor<'abbrev, 'unit, R> where
R: Clone + Reader,
fn clone(&self) -> EntriesCursor<'abbrev, 'unit, R>
impl<R> Clone for DebugTypesUnitHeadersIter<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
impl<R> Clone for DebugTypesUnitHeadersIter<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
fn clone(&self) -> DebugTypesUnitHeadersIter<R>
impl<R> Clone for PubTypesEntry<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
impl<R> Clone for PubTypesEntry<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
fn clone(&self) -> PubTypesEntry<R>
impl<'abbrev, 'unit, R, Offset> Clone for DebuggingInformationEntry<'abbrev, 'unit, R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<'abbrev, 'unit, R, Offset> Clone for DebuggingInformationEntry<'abbrev, 'unit, R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> DebuggingInformationEntry<'abbrev, 'unit, R, Offset>
impl<R, Offset> Clone for FrameDescriptionEntry<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
impl<R, Offset> Clone for FrameDescriptionEntry<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
fn clone(&self) -> FrameDescriptionEntry<R, Offset>
impl<R> Clone for LineInstructions<R> where
R: Clone + Reader,
impl<R> Clone for LineInstructions<R> where
R: Clone + Reader,
fn clone(&self) -> LineInstructions<R>
impl<R> Clone for PubNamesEntry<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
impl<R> Clone for PubNamesEntry<R> where
R: Clone + Reader,
<R as Reader>::Offset: Clone,
fn clone(&self) -> PubNamesEntry<R>
impl<R> Clone for ParsedEhFrameHdr<R> where
R: Clone + Reader,
impl<R> Clone for ParsedEhFrameHdr<R> where
R: Clone + Reader,
fn clone(&self) -> ParsedEhFrameHdr<R>
impl<'bases, Section, R> Clone for PartialFrameDescriptionEntry<'bases, Section, R> where
Section: Clone + UnwindSection<R>,
R: Clone + Reader,
<R as Reader>::Offset: Clone,
<Section as UnwindSection<R>>::Offset: Clone,
impl<'bases, Section, R> Clone for PartialFrameDescriptionEntry<'bases, Section, R> where
Section: Clone + UnwindSection<R>,
R: Clone + Reader,
<R as Reader>::Offset: Clone,
<Section as UnwindSection<R>>::Offset: Clone,
fn clone(&self) -> PartialFrameDescriptionEntry<'bases, Section, R>
impl<E> Clone for CompressionHeader64<E> where
E: Clone + Endian,
impl<E> Clone for CompressionHeader64<E> where
E: Clone + Endian,
fn clone(&self) -> CompressionHeader64<E>
impl<'data, 'file, Mach, R> Clone for MachOSymbol<'data, 'file, Mach, R> where
Mach: Clone + MachHeader,
R: Clone + ReadRef<'data>,
<Mach as MachHeader>::Nlist: Clone,
impl<'data, 'file, Mach, R> Clone for MachOSymbol<'data, 'file, Mach, R> where
Mach: Clone + MachHeader,
R: Clone + ReadRef<'data>,
<Mach as MachHeader>::Nlist: Clone,
fn clone(&self) -> MachOSymbol<'data, 'file, Mach, R>
impl<E> Clone for SubFrameworkCommand<E> where
E: Clone + Endian,
impl<E> Clone for SubFrameworkCommand<E> where
E: Clone + Endian,
fn clone(&self) -> SubFrameworkCommand<E>
impl<'data, 'file, Mach, R> Clone for MachOSymbolTable<'data, 'file, Mach, R> where
Mach: Clone + MachHeader,
R: Clone + ReadRef<'data>,
impl<'data, 'file, Mach, R> Clone for MachOSymbolTable<'data, 'file, Mach, R> where
Mach: Clone + MachHeader,
R: Clone + ReadRef<'data>,
fn clone(&self) -> MachOSymbolTable<'data, 'file, Mach, R>
impl<E> Clone for SegmentCommand32<E> where
E: Clone + Endian,
impl<E> Clone for SegmentCommand32<E> where
E: Clone + Endian,
fn clone(&self) -> SegmentCommand32<E>
impl<'data, E> Clone for LoadCommandIterator<'data, E> where
E: Clone + Endian,
impl<'data, E> Clone for LoadCommandIterator<'data, E> where
E: Clone + Endian,
fn clone(&self) -> LoadCommandIterator<'data, E>
impl<'data, Elf> Clone for VernauxIterator<'data, Elf> where
Elf: Clone + FileHeader,
<Elf as FileHeader>::Endian: Clone,
impl<'data, Elf> Clone for VernauxIterator<'data, Elf> where
Elf: Clone + FileHeader,
<Elf as FileHeader>::Endian: Clone,
fn clone(&self) -> VernauxIterator<'data, Elf>
impl Clone for ImageEpilogueDynamicRelocationHeader
impl Clone for ImageEpilogueDynamicRelocationHeader
fn clone(&self) -> ImageEpilogueDynamicRelocationHeader
impl<E> Clone for TwolevelHintsCommand<E> where
E: Clone + Endian,
impl<E> Clone for TwolevelHintsCommand<E> where
E: Clone + Endian,
fn clone(&self) -> TwolevelHintsCommand<E>
impl<E> Clone for SourceVersionCommand<E> where
E: Clone + Endian,
impl<E> Clone for SourceVersionCommand<E> where
E: Clone + Endian,
fn clone(&self) -> SourceVersionCommand<E>
impl<'data> Clone for RelocationBlockIterator<'data>
impl<'data> Clone for RelocationBlockIterator<'data>
fn clone(&self) -> RelocationBlockIterator<'data>
impl<E> Clone for PreboundDylibCommand<E> where
E: Clone + Endian,
impl<E> Clone for PreboundDylibCommand<E> where
E: Clone + Endian,
fn clone(&self) -> PreboundDylibCommand<E>
impl<'data, R> Clone for StringTable<'data, R> where
R: Clone + ReadRef<'data>,
impl<'data, R> Clone for StringTable<'data, R> where
R: Clone + ReadRef<'data>,
fn clone(&self) -> StringTable<'data, R>
impl<E> Clone for SegmentCommand64<E> where
E: Clone + Endian,
impl<E> Clone for SegmentCommand64<E> where
E: Clone + Endian,
fn clone(&self) -> SegmentCommand64<E>
impl<'data, 'file, Elf, R> Clone for ElfSymbolTable<'data, 'file, Elf, R> where
'data: 'file,
Elf: Clone + FileHeader,
R: Clone + ReadRef<'data>,
<Elf as FileHeader>::Endian: Clone,
impl<'data, 'file, Elf, R> Clone for ElfSymbolTable<'data, 'file, Elf, R> where
'data: 'file,
Elf: Clone + FileHeader,
R: Clone + ReadRef<'data>,
<Elf as FileHeader>::Endian: Clone,
fn clone(&self) -> ElfSymbolTable<'data, 'file, Elf, R>
impl<'data, Elf> Clone for VerdefIterator<'data, Elf> where
Elf: Clone + FileHeader,
<Elf as FileHeader>::Endian: Clone,
impl<'data, Elf> Clone for VerdefIterator<'data, Elf> where
Elf: Clone + FileHeader,
<Elf as FileHeader>::Endian: Clone,
fn clone(&self) -> VerdefIterator<'data, Elf>
impl<E> Clone for DyldCacheImageInfo<E> where
E: Clone + Endian,
impl<E> Clone for DyldCacheImageInfo<E> where
E: Clone + Endian,
fn clone(&self) -> DyldCacheImageInfo<E>
impl<'data, Elf> Clone for VerdauxIterator<'data, Elf> where
Elf: Clone + FileHeader,
<Elf as FileHeader>::Endian: Clone,
impl<'data, Elf> Clone for VerdauxIterator<'data, Elf> where
Elf: Clone + FileHeader,
<Elf as FileHeader>::Endian: Clone,
fn clone(&self) -> VerdauxIterator<'data, Elf>
impl<E> Clone for EncryptionInfoCommand64<E> where
E: Clone + Endian,
impl<E> Clone for EncryptionInfoCommand64<E> where
E: Clone + Endian,
fn clone(&self) -> EncryptionInfoCommand64<E>
impl<E> Clone for BuildVersionCommand<E> where
E: Clone + Endian,
impl<E> Clone for BuildVersionCommand<E> where
E: Clone + Endian,
fn clone(&self) -> BuildVersionCommand<E>
impl<E> Clone for SubClientCommand<E> where
E: Clone + Endian,
impl<E> Clone for SubClientCommand<E> where
E: Clone + Endian,
fn clone(&self) -> SubClientCommand<E>
impl<'data, E> Clone for LoadCommandVariant<'data, E> where
E: Clone + Endian,
impl<'data, E> Clone for LoadCommandVariant<'data, E> where
E: Clone + Endian,
fn clone(&self) -> LoadCommandVariant<'data, E>
impl<'data, Mach, R> Clone for SymbolTable<'data, Mach, R> where
Mach: Clone + MachHeader,
R: Clone + ReadRef<'data>,
<Mach as MachHeader>::Nlist: Clone,
impl<'data, Mach, R> Clone for SymbolTable<'data, Mach, R> where
Mach: Clone + MachHeader,
R: Clone + ReadRef<'data>,
<Mach as MachHeader>::Nlist: Clone,
fn clone(&self) -> SymbolTable<'data, Mach, R>
impl<Section> Clone for SymbolFlags<Section> where
Section: Clone,
impl<Section> Clone for SymbolFlags<Section> where
Section: Clone,
fn clone(&self) -> SymbolFlags<Section>
impl<'data, Elf> Clone for VerneedIterator<'data, Elf> where
Elf: Clone + FileHeader,
<Elf as FileHeader>::Endian: Clone,
impl<'data, Elf> Clone for VerneedIterator<'data, Elf> where
Elf: Clone + FileHeader,
<Elf as FileHeader>::Endian: Clone,
fn clone(&self) -> VerneedIterator<'data, Elf>
impl<'data> Clone for RelocationIterator<'data>
impl<'data> Clone for RelocationIterator<'data>
impl<E> Clone for DyldCacheMappingInfo<E> where
E: Clone + Endian,
impl<E> Clone for DyldCacheMappingInfo<E> where
E: Clone + Endian,
fn clone(&self) -> DyldCacheMappingInfo<E>
impl<E> Clone for LinkeditDataCommand<E> where
E: Clone + Endian,
impl<E> Clone for LinkeditDataCommand<E> where
E: Clone + Endian,
fn clone(&self) -> LinkeditDataCommand<E>
impl<'data, Elf, R> Clone for SymbolTable<'data, Elf, R> where
Elf: Clone + FileHeader,
R: Clone + ReadRef<'data>,
<Elf as FileHeader>::Sym: Clone,
impl<'data, Elf, R> Clone for SymbolTable<'data, Elf, R> where
Elf: Clone + FileHeader,
R: Clone + ReadRef<'data>,
<Elf as FileHeader>::Sym: Clone,
fn clone(&self) -> SymbolTable<'data, Elf, R>
impl<E> Clone for EntryPointCommand<E> where
E: Clone + Endian,
impl<E> Clone for EntryPointCommand<E> where
E: Clone + Endian,
fn clone(&self) -> EntryPointCommand<E>
impl<'data, Elf> Clone for VersionTable<'data, Elf> where
Elf: Clone + FileHeader,
<Elf as FileHeader>::Endian: Clone,
impl<'data, Elf> Clone for VersionTable<'data, Elf> where
Elf: Clone + FileHeader,
<Elf as FileHeader>::Endian: Clone,
fn clone(&self) -> VersionTable<'data, Elf>
impl Clone for ImagePrologueDynamicRelocationHeader
impl Clone for ImagePrologueDynamicRelocationHeader
fn clone(&self) -> ImagePrologueDynamicRelocationHeader
impl<E> Clone for PrebindCksumCommand<E> where
E: Clone + Endian,
impl<E> Clone for PrebindCksumCommand<E> where
E: Clone + Endian,
fn clone(&self) -> PrebindCksumCommand<E>
impl<'data, 'file, R> Clone for CoffSymbol<'data, 'file, R> where
R: Clone + ReadRef<'data>,
impl<'data, 'file, R> Clone for CoffSymbol<'data, 'file, R> where
R: Clone + ReadRef<'data>,
fn clone(&self) -> CoffSymbol<'data, 'file, R>
impl<'data, Elf, R> Clone for SectionTable<'data, Elf, R> where
Elf: Clone + FileHeader,
R: Clone + ReadRef<'data>,
<Elf as FileHeader>::SectionHeader: Clone,
impl<'data, Elf, R> Clone for SectionTable<'data, Elf, R> where
Elf: Clone + FileHeader,
R: Clone + ReadRef<'data>,
<Elf as FileHeader>::SectionHeader: Clone,
fn clone(&self) -> SectionTable<'data, Elf, R>
impl<E> Clone for FilesetEntryCommand<E> where
E: Clone + Endian,
impl<E> Clone for FilesetEntryCommand<E> where
E: Clone + Endian,
fn clone(&self) -> FilesetEntryCommand<E>
impl<E> Clone for CompressionHeader32<E> where
E: Clone + Endian,
impl<E> Clone for CompressionHeader32<E> where
E: Clone + Endian,
fn clone(&self) -> CompressionHeader32<E>
impl<E> Clone for VersionMinCommand<E> where
E: Clone + Endian,
impl<E> Clone for VersionMinCommand<E> where
E: Clone + Endian,
fn clone(&self) -> VersionMinCommand<E>
impl<'data, 'file, R> Clone for CoffSymbolTable<'data, 'file, R> where
R: Clone + ReadRef<'data>,
impl<'data, 'file, R> Clone for CoffSymbolTable<'data, 'file, R> where
R: Clone + ReadRef<'data>,
fn clone(&self) -> CoffSymbolTable<'data, 'file, R>
impl<E> Clone for EncryptionInfoCommand32<E> where
E: Clone + Endian,
impl<E> Clone for EncryptionInfoCommand32<E> where
E: Clone + Endian,
fn clone(&self) -> EncryptionInfoCommand32<E>
impl<E> Clone for SubUmbrellaCommand<E> where
E: Clone + Endian,
impl<E> Clone for SubUmbrellaCommand<E> where
E: Clone + Endian,
fn clone(&self) -> SubUmbrellaCommand<E>
impl<E> Clone for DylibTableOfContents<E> where
E: Clone + Endian,
impl<E> Clone for DylibTableOfContents<E> where
E: Clone + Endian,
fn clone(&self) -> DylibTableOfContents<E>
impl<'data, E> Clone for LoadCommandData<'data, E> where
E: Clone + Endian,
impl<'data, E> Clone for LoadCommandData<'data, E> where
E: Clone + Endian,
fn clone(&self) -> LoadCommandData<'data, E>
impl<'data, 'file, Elf, R> Clone for ElfSymbol<'data, 'file, Elf, R> where
'data: 'file,
Elf: Clone + FileHeader,
R: Clone + ReadRef<'data>,
<Elf as FileHeader>::Endian: Clone,
<Elf as FileHeader>::Sym: Clone,
impl<'data, 'file, Elf, R> Clone for ElfSymbol<'data, 'file, Elf, R> where
'data: 'file,
Elf: Clone + FileHeader,
R: Clone + ReadRef<'data>,
<Elf as FileHeader>::Endian: Clone,
<Elf as FileHeader>::Sym: Clone,
fn clone(&self) -> ElfSymbol<'data, 'file, Elf, R>
impl<E> Clone for SubLibraryCommand<E> where
E: Clone + Endian,
impl<E> Clone for SubLibraryCommand<E> where
E: Clone + Endian,
fn clone(&self) -> SubLibraryCommand<E>
impl<E> Clone for BuildToolVersion<E> where
E: Clone + Endian,
impl<E> Clone for BuildToolVersion<E> where
E: Clone + Endian,
fn clone(&self) -> BuildToolVersion<E>
impl<E> Clone for RoutinesCommand32<E> where
E: Clone + Endian,
impl<E> Clone for RoutinesCommand32<E> where
E: Clone + Endian,
fn clone(&self) -> RoutinesCommand32<E>
impl<E> Clone for LinkerOptionCommand<E> where
E: Clone + Endian,
impl<E> Clone for LinkerOptionCommand<E> where
E: Clone + Endian,
fn clone(&self) -> LinkerOptionCommand<E>
impl<E> Clone for RoutinesCommand64<E> where
E: Clone + Endian,
impl<E> Clone for RoutinesCommand64<E> where
E: Clone + Endian,
fn clone(&self) -> RoutinesCommand64<E>
impl<'data> Clone for ImportDescriptorIterator<'data>
impl<'data> Clone for ImportDescriptorIterator<'data>
fn clone(&self) -> ImportDescriptorIterator<'data>
impl<'a> Clone for GraphemeIndices<'a>
impl<'a> Clone for GraphemeIndices<'a>
impl<'a> Clone for Graphemes<'a>
impl<'a> Clone for Graphemes<'a>
impl<'a> Clone for WordBounds<'a>
impl<'a> Clone for WordBounds<'a>
impl<'a> Clone for WordBoundIndices<'a>
impl<'a> Clone for WordBoundIndices<'a>
impl Clone for CharIter
impl Clone for CharIter
impl<'a> Clone for PercentDecode<'a>
impl<'a> Clone for PercentDecode<'a>
impl<'a> Clone for PercentEncode<'a>
impl<'a> Clone for PercentEncode<'a>
sourceimpl<X> Clone for WeightedIndex<X> where
X: Clone + SampleUniform + PartialOrd<X>,
<X as SampleUniform>::Sampler: Clone,
impl<X> Clone for WeightedIndex<X> where
X: Clone + SampleUniform + PartialOrd<X>,
<X as SampleUniform>::Sampler: Clone,
fn clone(&self) -> WeightedIndex<X>
sourceimpl Clone for UniformDuration
impl Clone for UniformDuration
fn clone(&self) -> UniformDuration
sourceimpl Clone for WeightedError
impl Clone for WeightedError
fn clone(&self) -> WeightedError
sourceimpl<X> Clone for UniformFloat<X> where
X: Clone,
impl<X> Clone for UniformFloat<X> where
X: Clone,
fn clone(&self) -> UniformFloat<X>
sourceimpl Clone for BernoulliError
impl Clone for BernoulliError
fn clone(&self) -> BernoulliError
sourceimpl<R, Rsdr> Clone for ReseedingRng<R, Rsdr> where
R: BlockRngCore + SeedableRng + Clone,
Rsdr: RngCore + Clone,
impl<R, Rsdr> Clone for ReseedingRng<R, Rsdr> where
R: BlockRngCore + SeedableRng + Clone,
Rsdr: RngCore + Clone,
fn clone(&self) -> ReseedingRng<R, Rsdr>
sourceimpl Clone for OpenClosed01
impl Clone for OpenClosed01
fn clone(&self) -> OpenClosed01
sourceimpl Clone for IndexVecIntoIter
impl Clone for IndexVecIntoIter
fn clone(&self) -> IndexVecIntoIterⓘNotable traits for IndexVecIntoIterimpl Iterator for IndexVecIntoIter type Item = usize;
sourceimpl<X> Clone for UniformInt<X> where
X: Clone,
impl<X> Clone for UniformInt<X> where
X: Clone,
fn clone(&self) -> UniformInt<X>
sourceimpl Clone for UniformChar
impl Clone for UniformChar
fn clone(&self) -> UniformChar
sourceimpl<X> Clone for Uniform<X> where
X: Clone + SampleUniform,
<X as SampleUniform>::Sampler: Clone,
impl<X> Clone for Uniform<X> where
X: Clone + SampleUniform,
<X as SampleUniform>::Sampler: Clone,
sourceimpl<R> Clone for BlockRng<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
sourceimpl<R> Clone for BlockRng64<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
impl<R> Clone for BlockRng64<R> where
R: Clone + BlockRngCore + ?Sized,
<R as BlockRngCore>::Results: Clone,
fn clone(&self) -> BlockRng64<R>
sourceimpl Clone for ChaCha20Rng
impl Clone for ChaCha20Rng
fn clone(&self) -> ChaCha20Rng
sourceimpl Clone for ChaCha8Rng
impl Clone for ChaCha8Rng
fn clone(&self) -> ChaCha8Rng
sourceimpl Clone for ChaCha12Core
impl Clone for ChaCha12Core
fn clone(&self) -> ChaCha12Core
sourceimpl Clone for ChaCha8Core
impl Clone for ChaCha8Core
fn clone(&self) -> ChaCha8Core
sourceimpl Clone for ChaCha20Core
impl Clone for ChaCha20Core
fn clone(&self) -> ChaCha20Core
sourceimpl Clone for ChaCha12Rng
impl Clone for ChaCha12Rng
fn clone(&self) -> ChaCha12Rng
impl<S3, S4, NI> Clone for SseMachine<S3, S4, NI> where
S3: Clone,
S4: Clone,
NI: Clone,
impl<S3, S4, NI> Clone for SseMachine<S3, S4, NI> where
S3: Clone,
S4: Clone,
NI: Clone,
fn clone(&self) -> SseMachine<S3, S4, NI>
sourceimpl Clone for InputLocation
impl Clone for InputLocation
fn clone(&self) -> InputLocation
sourceimpl<R> Clone for ErrorVariant<R> where
R: Clone,
impl<R> Clone for ErrorVariant<R> where
R: Clone,
fn clone(&self) -> ErrorVariant<R>
sourceimpl Clone for LineColLocation
impl Clone for LineColLocation
fn clone(&self) -> LineColLocation
impl<'a> Clone for Utf8Chunks<'a>
impl<'a> Clone for Utf8Chunks<'a>
impl<'a> Clone for Chars<'a>
impl<'a> Clone for Chars<'a>
impl<'a> Clone for Bytes<'a>
impl<'a> Clone for Bytes<'a>
impl<'a> Clone for CharIndices<'a>
impl<'a> Clone for CharIndices<'a>
sourceimpl<D> Clone for SimpleHmac<D> where
D: Clone + Digest + BlockSizeUser,
impl<D> Clone for SimpleHmac<D> where
D: Clone + Digest + BlockSizeUser,
fn clone(&self) -> SimpleHmac<D>
sourceimpl<D> Clone for HmacCore<D> where
D: CoreProxy,
<D as CoreProxy>::Core: HashMarker,
<D as CoreProxy>::Core: UpdateCore,
<D as CoreProxy>::Core: FixedOutputCore,
<D as CoreProxy>::Core: BufferKindUser,
<D as CoreProxy>::Core: Default,
<D as CoreProxy>::Core: 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,
<<D as CoreProxy>::Core as BufferKindUser>::BufferKind == Eager,
impl<D> Clone for HmacCore<D> where
D: CoreProxy,
<D as CoreProxy>::Core: HashMarker,
<D as CoreProxy>::Core: UpdateCore,
<D as CoreProxy>::Core: FixedOutputCore,
<D as CoreProxy>::Core: BufferKindUser,
<D as CoreProxy>::Core: Default,
<D as CoreProxy>::Core: 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,
<<D as CoreProxy>::Core as BufferKindUser>::BufferKind == Eager,
sourceimpl Clone for FlushDecompress
impl Clone for FlushDecompress
fn clone(&self) -> FlushDecompress
sourceimpl Clone for Compression
impl Clone for Compression
fn clone(&self) -> Compression
sourceimpl Clone for FlushCompress
impl Clone for FlushCompress
fn clone(&self) -> FlushCompress
sourceimpl Clone for Compression
impl Clone for Compression
fn clone(&self) -> Compression
sourceimpl Clone for SaltString
impl Clone for SaltString
fn clone(&self) -> SaltString
sourceimpl Clone for ParamsString
impl Clone for ParamsString
fn clone(&self) -> ParamsString
sourceimpl<'a> Clone for PasswordHash<'a>
impl<'a> Clone for PasswordHash<'a>
fn clone(&self) -> PasswordHash<'a>
sourceimpl Clone for InvalidValue
impl Clone for InvalidValue
fn clone(&self) -> InvalidValue
sourceimpl Clone for InvalidLengthError
impl Clone for InvalidLengthError
fn clone(&self) -> InvalidLengthError
sourceimpl Clone for InvalidEncodingError
impl Clone for InvalidEncodingError
fn clone(&self) -> InvalidEncodingError
impl<'a, V> Clone for Values<'a, V>
impl<'a, V> Clone for Values<'a, V>
impl<'a, K, V> Clone for Iter<'a, K, V> where
K: EnumArray<V>,
impl<'a, K, V> Clone for Iter<'a, K, V> where
K: EnumArray<V>,
sourceimpl Clone for ParseError
impl Clone for ParseError
fn clone(&self) -> ParseError
impl Clone for Rng
impl Clone for Rng
fn clone(&self) -> Rng
fn clone(&self) -> Rng
Clones the generator by deterministically deriving a new generator based on the initial seed.
Example
// Seed two generators equally, and clone both of them.
let base1 = fastrand::Rng::new();
base1.seed(0x4d595df4d0f33173);
base1.bool(); // Use the generator once.
let base2 = fastrand::Rng::new();
base2.seed(0x4d595df4d0f33173);
base2.bool(); // Use the generator once.
let rng1 = base1.clone();
let rng2 = base2.clone();
assert_eq!(rng1.u64(..), rng2.u64(..), "the cloned generators are identical");
sourceimpl<'a> Clone for ParseOptions<'a>
impl<'a> Clone for ParseOptions<'a>
fn clone(&self) -> ParseOptions<'a>
sourceimpl Clone for ParseError
impl Clone for ParseError
fn clone(&self) -> ParseError
sourceimpl Clone for OpaqueOrigin
impl Clone for OpaqueOrigin
fn clone(&self) -> OpaqueOrigin
sourceimpl Clone for SyntaxViolation
impl Clone for SyntaxViolation
fn clone(&self) -> SyntaxViolation
impl<'a> Clone for Parse<'a>
impl<'a> Clone for Parse<'a>
impl<A> Clone for TinyVec<A> where
A: Array + Clone,
<A as Array>::Item: Clone,
impl<A> Clone for TinyVec<A> where
A: Array + Clone,
<A as Array>::Item: Clone,
fn clone(&self) -> TinyVec<A>
fn clone_from(&mut self, o: &TinyVec<A>)
impl<A> Clone for ArrayVec<A> where
A: Array + Clone,
<A as Array>::Item: Clone,
impl<A> Clone for ArrayVec<A> where
A: Array + Clone,
<A as Array>::Item: Clone,
fn clone(&self) -> ArrayVec<A>
fn clone_from(&mut self, o: &ArrayVec<A>)
impl<'a> Clone for Iter<'a>
impl<'a> Clone for Iter<'a>
sourceimpl Clone for StreamError
impl Clone for StreamError
fn clone(&self) -> StreamError
sourceimpl<'a> Clone for EntityDefinition<'a>
impl<'a> Clone for EntityDefinition<'a>
fn clone(&self) -> EntityDefinition<'a>
sourceimpl<'a> Clone for ExternalId<'a>
impl<'a> Clone for ExternalId<'a>
fn clone(&self) -> ExternalId<'a>
sourceimpl<'a> Clone for ElementEnd<'a>
impl<'a> Clone for ElementEnd<'a>
fn clone(&self) -> ElementEnd<'a>
impl<'_, P> Clone for Rows<'_, P> where
P: Pixel,
impl<'_, P> Clone for Rows<'_, P> where
P: Pixel,
impl<Buffer, P> Clone for ViewMut<Buffer, P> where
Buffer: Clone + AsMut<[<P as Pixel>::Subpixel]>,
P: Clone + Pixel,
impl<Buffer, P> Clone for ViewMut<Buffer, P> where
Buffer: Clone + AsMut<[<P as Pixel>::Subpixel]>,
P: Clone + Pixel,
fn clone(&self) -> ViewMut<Buffer, P>
impl<'_, P> Clone for Pixels<'_, P> where
P: Pixel,
impl<'_, P> Clone for Pixels<'_, P> where
P: Pixel,
impl<P, Container> Clone for ImageBuffer<P, Container> where
P: Pixel,
Container: Deref<Target = [<P as Pixel>::Subpixel]> + Clone,
impl<P, Container> Clone for ImageBuffer<P, Container> where
P: Pixel,
Container: Deref<Target = [<P as Pixel>::Subpixel]> + Clone,
fn clone(&self) -> ImageBuffer<P, Container>
impl<'_, P> Clone for EnumeratePixels<'_, P> where
P: Pixel,
impl<'_, P> Clone for EnumeratePixels<'_, P> where
P: Pixel,
impl<Buffer, P> Clone for View<Buffer, P> where
Buffer: Clone + AsRef<[<P as Pixel>::Subpixel]>,
P: Clone + Pixel,
impl<Buffer, P> Clone for View<Buffer, P> where
Buffer: Clone + AsRef<[<P as Pixel>::Subpixel]>,
P: Clone + Pixel,
fn clone(&self) -> View<Buffer, P>
impl<'_, P> Clone for EnumerateRows<'_, P> where
P: Pixel,
impl<'_, P> Clone for EnumerateRows<'_, P> where
P: Pixel,
impl<Buffer> Clone for FlatSamples<Buffer> where
Buffer: Clone,
impl<Buffer> Clone for FlatSamples<Buffer> where
Buffer: Clone,
fn clone(&self) -> FlatSamples<Buffer>
sourceimpl<A> Clone for RangeStepInclusive<A> where
A: Clone,
impl<A> Clone for RangeStepInclusive<A> where
A: Clone,
fn clone(&self) -> RangeStepInclusive<A>ⓘNotable traits for RangeStepInclusive<A>impl<A> Iterator for RangeStepInclusive<A> where
A: CheckedAdd + PartialOrd<A> + Clone + PartialEq<A>, type Item = A;
A: CheckedAdd + PartialOrd<A> + Clone + PartialEq<A>, type Item = A;
sourceimpl<A> Clone for RangeStepFrom<A> where
A: Clone,
impl<A> Clone for RangeStepFrom<A> where
A: Clone,
fn clone(&self) -> RangeStepFrom<A>ⓘNotable traits for RangeStepFrom<A>impl<A> Iterator for RangeStepFrom<A> where
A: Add<A, Output = A> + Clone, type Item = A;
A: Add<A, Output = A> + Clone, type Item = A;
sourceimpl<A> Clone for RangeInclusive<A> where
A: Clone,
impl<A> Clone for RangeInclusive<A> where
A: Clone,
fn clone(&self) -> RangeInclusive<A>ⓘNotable traits for RangeInclusive<A>impl<A> Iterator for RangeInclusive<A> where
A: Add<A, Output = A> + PartialOrd<A> + Clone + ToPrimitive, type Item = A;
A: Add<A, Output = A> + PartialOrd<A> + Clone + ToPrimitive, type Item = A;
sourceimpl<A> Clone for RangeStep<A> where
A: Clone,
impl<A> Clone for RangeStep<A> where
A: Clone,
fn clone(&self) -> RangeStep<A>ⓘNotable traits for RangeStep<A>impl<A> Iterator for RangeStep<A> where
A: CheckedAdd + PartialOrd<A> + Clone, type Item = A;
A: CheckedAdd + PartialOrd<A> + Clone, type Item = A;
sourceimpl Clone for ParseRatioError
impl Clone for ParseRatioError
fn clone(&self) -> ParseRatioError
sourceimpl Clone for ParseBigIntError
impl Clone for ParseBigIntError
fn clone(&self) -> ParseBigIntError
sourceimpl<T> Clone for TryFromBigIntError<T> where
T: Clone,
impl<T> Clone for TryFromBigIntError<T> where
T: Clone,
fn clone(&self) -> TryFromBigIntError<T>
impl Clone for Term
impl Clone for Term
sourceimpl<'a> Clone for ArgMatches<'a>
impl<'a> Clone for ArgMatches<'a>
fn clone(&self) -> ArgMatches<'a>
sourceimpl Clone for ArgSettings
impl Clone for ArgSettings
fn clone(&self) -> ArgSettings
sourceimpl<'a> Clone for SubCommand<'a>
impl<'a> Clone for SubCommand<'a>
fn clone(&self) -> SubCommand<'a>
sourceimpl Clone for AppSettings
impl Clone for AppSettings
fn clone(&self) -> AppSettings
sourceimpl<'a, S> Clone for Wrapper<'a, S> where
S: Clone + WordSplitter,
impl<'a, S> Clone for Wrapper<'a, S> where
S: Clone + WordSplitter,
sourceimpl Clone for HyphenSplitter
impl Clone for HyphenSplitter
fn clone(&self) -> HyphenSplitter
sourceimpl Clone for NoHyphenation
impl Clone for NoHyphenation
fn clone(&self) -> NoHyphenation
impl<V> Clone for VecMap<V> where
V: Clone,
impl<V> Clone for VecMap<V> where
V: Clone,
fn clone(&self) -> VecMap<V>
fn clone_from(&mut self, source: &VecMap<V>)
impl<'a, V> Clone for Values<'a, V>
impl<'a, V> Clone for Values<'a, V>
impl<'a, V> Clone for Iter<'a, V>
impl<'a, V> Clone for Iter<'a, V>
impl<'a, V> Clone for Keys<'a, V>
impl<'a, V> Clone for Keys<'a, V>
sourceimpl Clone for Certificate
impl Clone for Certificate
fn clone(&self) -> Certificate
sourceimpl Clone for HeaderValue
impl Clone for HeaderValue
fn clone(&self) -> HeaderValue
sourceimpl Clone for PathAndQuery
impl Clone for PathAndQuery
fn clone(&self) -> PathAndQuery
sourceimpl Clone for HeaderName
impl Clone for HeaderName
fn clone(&self) -> HeaderName
sourceimpl Clone for StatusCode
impl Clone for StatusCode
fn clone(&self) -> StatusCode
impl<T> Clone for Pending<T>
impl<T> Clone for Pending<T>
fn clone(&self) -> WeakShared<Fut>
sourceimpl Clone for TcpKeepalive
impl Clone for TcpKeepalive
fn clone(&self) -> TcpKeepalive
impl<T> Clone for PollSender<T>
impl<T> Clone for PollSender<T>
fn clone(&self) -> PollSender<T>
fn clone(&self) -> PollSender<T>
Clones this PollSender
. The resulting clone will not have any
in-progress send operations, even if the current PollSender
does.
sourceimpl<T> Clone for Instrumented<T> where
T: Clone,
impl<T> Clone for Instrumented<T> where
T: Clone,
fn clone(&self) -> Instrumented<T>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> Clone for WithDispatch<T> where
T: Clone,
impl<T> Clone for WithDispatch<T> where
T: Clone,
fn clone(&self) -> WithDispatch<T>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl Clone for LevelFilter
impl Clone for LevelFilter
fn clone(&self) -> LevelFilter
sourceimpl<T> Clone for DisplayValue<T> where
T: Clone + Display,
impl<T> Clone for DisplayValue<T> where
T: Clone + Display,
fn clone(&self) -> DisplayValue<T>
sourceimpl Clone for ParseLevelFilterError
impl Clone for ParseLevelFilterError
fn clone(&self) -> ParseLevelFilterError
sourceimpl<T> Clone for DebugValue<T> where
T: Clone + Debug,
impl<T> Clone for DebugValue<T> where
T: Clone + Debug,
fn clone(&self) -> DebugValue<T>
sourceimpl Clone for Identifier
impl Clone for Identifier
fn clone(&self) -> Identifier
sourceimpl Clone for NoSubscriber
impl Clone for NoSubscriber
fn clone(&self) -> NoSubscriber
sourceimpl Clone for FlowControl
impl Clone for FlowControl
fn clone(&self) -> FlowControl
sourceimpl<B> Clone for SendRequest<B> where
B: Buf,
impl<B> Clone for SendRequest<B> where
B: Buf,
fn clone(&self) -> SendRequest<B>
impl<T> Clone for PollSender<T>
impl<T> Clone for PollSender<T>
fn clone(&self) -> PollSender<T>
fn clone(&self) -> PollSender<T>
Clones this PollSender
.
The resulting PollSender
will have an initial state identical to calling PollSender::new
.
sourceimpl<'_, T, S> Clone for Difference<'_, T, S>
impl<'_, T, S> Clone for Difference<'_, T, S>
fn clone(&self) -> Difference<'_, T, S>ⓘNotable traits for Difference<'a, T, S>impl<'a, T, S> Iterator for Difference<'a, T, S> where
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
sourceimpl<'_, T, S1, S2> Clone for SymmetricDifference<'_, T, S1, S2>
impl<'_, T, S1, S2> Clone for SymmetricDifference<'_, T, S1, S2>
fn clone(&self) -> SymmetricDifference<'_, T, S1, S2>ⓘNotable traits for SymmetricDifference<'a, T, S1, S2>impl<'a, T, S1, S2> Iterator for SymmetricDifference<'a, T, S1, S2> where
T: Eq + Hash,
S1: BuildHasher,
S2: BuildHasher, type Item = &'a T;
T: Eq + Hash,
S1: BuildHasher,
S2: BuildHasher, type Item = &'a T;
sourceimpl<'_, T, S> Clone for Intersection<'_, T, S>
impl<'_, T, S> Clone for Intersection<'_, T, S>
fn clone(&self) -> Intersection<'_, T, S>ⓘNotable traits for Intersection<'a, T, S>impl<'a, T, S> Iterator for Intersection<'a, T, S> where
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;
T: Eq + Hash,
S: BuildHasher, type Item = &'a T;