This PR adds derived Clone and Copy trait implementations to the Duplicate enum. This allows users to more easily use a Duplicate value stored somewhere multiple times without resorting to weird match tricks to "copy" the value. Instead, the standard ways like deferring and calling .clone() will work.
This PR adds derived
Clone
andCopy
trait implementations to theDuplicate
enum. This allows users to more easily use aDuplicate
value stored somewhere multiple times without resorting to weird match tricks to "copy" the value. Instead, the standard ways like deferring and calling.clone()
will work.