std.clone.Clone
trait pub Clone
A type that can be cloned into a copy of itself.
Required methods
clone
Show source codeHide source code
fn pub clone -> Self
fn pub clone -> Self
Creates a clone of self
.
The returned value is an owned value that is the same type as the receiver
of this method. For example, cloning a ref Array[Int]
results in a
Array[Int]
, not another ref Array[Int]
.
Implementations
Array
impl Clone for Array
if
T: Clone
Bool
impl Clone for Bool
ByteArray
impl Clone for ByteArray
Slice
impl Clone for Slice
StackFrame
impl Clone for StackFrame
Float
impl Clone for Float
Path
impl Clone for Path
Int
impl Clone for Int
Map
impl Clone for Map
if
K: Equal + Hash + Clone,
V: Clone
IpAddress
impl Clone for IpAddress
Ipv4Address
impl Clone for Ipv4Address
Ipv6Address
impl Clone for Ipv6Address
ClientConfig
impl Clone for ClientConfig
ServerConfig
impl Clone for ServerConfig
Nil
impl Clone for Nil
Option
impl Clone for Option
if
T: Clone
ExclusiveRange
impl Clone for ExclusiveRange
InclusiveRange
impl Clone for InclusiveRange
Result
impl Clone for Result
if
E: Clone,
T: Clone
Signal
impl Clone for Signal
String
impl Clone for String
Channel
impl Clone for Channel
DateTime
impl Clone for DateTime
Duration
impl Clone for Duration
Instant
impl Clone for Instant
Tuple1
impl Clone for Tuple1
if
A: Clone
Tuple2
impl Clone for Tuple2
if
A: Clone,
B: Clone
Tuple3
impl Clone for Tuple3
if
A: Clone,
B: Clone,
C: Clone
Tuple4
impl Clone for Tuple4
if
A: Clone,
B: Clone,
C: Clone,
D: Clone
Tuple5
impl Clone for Tuple5
if
A: Clone,
B: Clone,
C: Clone,
D: Clone,
E: Clone
Tuple6
impl Clone for Tuple6
if
A: Clone,
B: Clone,
C: Clone,
D: Clone,
E: Clone,
F: Clone
Tuple7
impl Clone for Tuple7
if
A: Clone,
B: Clone,
C: Clone,
D: Clone,
E: Clone,
F: Clone,
G: Clone
Tuple8
impl Clone for Tuple8
if
A: Clone,
B: Clone,
C: Clone,
D: Clone,
E: Clone,
F: Clone,
G: Clone,
H: Clone
Scheme
impl Clone for Scheme