Lyricdev
GitHub

interface Clone

pub interface Clone

Copies a value deeply: value fields copied, reference fields cloned.

Synthesized for a conformance without a body.

Methods

fn clone(): Self

Returns a copy of this value.

Synthesized as every field cloned, a @Shared field copied as it stands; for an enum, its variant rebuilt from the payload cloned.