Search results

There are no results.

std.clone.Clone

trait pub Clone

A type that can be cloned into a copy of itself.

Required methods

clone

Show source code
Hide 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

std.array.

Array

impl Clone for Array
if
  T: Clone
std.bool.

Bool

impl Clone for Bool
std.bytes.

ByteArray

impl Clone for ByteArray
std.bytes.

Slice

impl Clone for Slice
std.debug.

StackFrame

impl Clone for StackFrame
std.float.

Float

impl Clone for Float
std.fs.path.

Path

impl Clone for Path
std.int.

Int

impl Clone for Int
std.map.

Map

impl Clone for Map
if
  K: Equal + Hash + Clone,
  V: Clone
std.net.ip.

IpAddress

impl Clone for IpAddress
std.net.ip.

Ipv4Address

impl Clone for Ipv4Address
std.net.ip.

Ipv6Address

impl Clone for Ipv6Address
std.net.tls.

ClientConfig

impl Clone for ClientConfig
std.net.tls.

ServerConfig

impl Clone for ServerConfig
std.nil.

Nil

impl Clone for Nil
std.option.

Option

impl Clone for Option
if
  T: Clone
std.range.

ExclusiveRange

impl Clone for ExclusiveRange
std.range.

InclusiveRange

impl Clone for InclusiveRange
std.result.

Result

impl Clone for Result
if
  E: Clone,
  T: Clone
std.signal.

Signal

impl Clone for Signal
std.string.

String

impl Clone for String
std.sync.

Channel

impl Clone for Channel
std.time.

DateTime

impl Clone for DateTime
std.time.

Duration

impl Clone for Duration
std.time.

Instant

impl Clone for Instant
std.tuple.

Tuple1

impl Clone for Tuple1
if
  A: Clone
std.tuple.

Tuple2

impl Clone for Tuple2
if
  A: Clone,
  B: Clone
std.tuple.

Tuple3

impl Clone for Tuple3
if
  A: Clone,
  B: Clone,
  C: Clone
std.tuple.

Tuple4

impl Clone for Tuple4
if
  A: Clone,
  B: Clone,
  C: Clone,
  D: Clone
std.tuple.

Tuple5

impl Clone for Tuple5
if
  A: Clone,
  B: Clone,
  C: Clone,
  D: Clone,
  E: Clone
std.tuple.

Tuple6

impl Clone for Tuple6
if
  A: Clone,
  B: Clone,
  C: Clone,
  D: Clone,
  E: Clone,
  F: Clone
std.tuple.

Tuple7

impl Clone for Tuple7
if
  A: Clone,
  B: Clone,
  C: Clone,
  D: Clone,
  E: Clone,
  F: Clone,
  G: Clone
std.tuple.

Tuple8

impl Clone for Tuple8
if
  A: Clone,
  B: Clone,
  C: Clone,
  D: Clone,
  E: Clone,
  F: Clone,
  G: Clone,
  H: Clone
std.uri.

Scheme

impl Clone for Scheme