std.clone.Clone
Clone[T]
A type that can be cloned into a new type.
Required methods
clone
Show source codeHide source code
fn pub clone -> T
fn pub clone -> T
Creates a clone of self
.
Implementations
Array
impl Clone[Array[T]] for Array
if
T: Clone[T]
Bool
impl Clone[Bool] for Bool
ByteArray
impl Clone[ByteArray] for ByteArray
Channel
impl Clone[Channel[T]] for Channel
StackFrame
impl Clone[StackFrame] for StackFrame
Float
impl Clone[Float] for Float
Path
impl Clone[Path] for Path
Int
impl Clone[Int] for Int
Entry
impl Clone[Entry[K, V]] for Entry
if
K: Equal[ref K] + Hash + Clone[K],
V: Clone[V]
Map
impl Clone[Map[K, V]] for Map
if
K: Equal[ref K] + Hash + Clone[K],
V: Clone[V]
IpAddress
impl Clone[IpAddress] for IpAddress
Ipv4Address
impl Clone[Ipv4Address] for Ipv4Address
Ipv6Address
impl Clone[Ipv6Address] for Ipv6Address
Nil
impl Clone[Nil] for Nil
Option
impl Clone[Option[T]] for Option
if
T: Clone[T]
ExclusiveRange
impl Clone[ExclusiveRange] for ExclusiveRange
InclusiveRange
impl Clone[InclusiveRange] for InclusiveRange
Result
impl Clone[Result[T, E]] for Result
if
E: Clone[E],
T: Clone[T]
Signal
impl Clone[Signal] for Signal
String
impl Clone[String] for String
DateTime
impl Clone[DateTime] for DateTime
Duration
impl Clone[Duration] for Duration
Instant
impl Clone[Instant] for Instant
Tuple1
impl Clone[(A)] for Tuple1
if
A: Clone[A]
Tuple2
impl Clone[(A, B)] for Tuple2
if
A: Clone[A],
B: Clone[B]
Tuple3
impl Clone[(A, B, C)] for Tuple3
if
A: Clone[A],
B: Clone[B],
C: Clone[C]
Tuple4
impl Clone[(A, B, C, D)] for Tuple4
if
A: Clone[A],
B: Clone[B],
C: Clone[C],
D: Clone[D]
Tuple5
impl Clone[(A, B, C, D, E)] for Tuple5
if
A: Clone[A],
B: Clone[B],
C: Clone[C],
D: Clone[D],
E: Clone[E]
Tuple6
impl Clone[(A, B, C, D, E, F)] for Tuple6
if
A: Clone[A],
B: Clone[B],
C: Clone[C],
D: Clone[D],
E: Clone[E],
F: Clone[F]
Tuple7
impl Clone[(A, B, C, D, E, F, G)] for Tuple7
if
A: Clone[A],
B: Clone[B],
C: Clone[C],
D: Clone[D],
E: Clone[E],
F: Clone[F],
G: Clone[G]
Tuple8
impl Clone[(A, B, C, D, E, F, G, H)] for Tuple8
if
A: Clone[A],
B: Clone[B],
C: Clone[C],
D: Clone[D],
E: Clone[E],
F: Clone[F],
G: Clone[G],
H: Clone[H]