Expand description
A cheap version of Clone.
Traits§
- Dupe
- Like
Clone, but should only be available ifCloneis constant time and zero allocation (e.g. a fewArcbumps). The implementation ofdupeshould always callclone. - Iter
Duped Ext - Option
Duped Ext - Extension traits on
Optionwhere it holds a ref.
Derive Macros§
- Clone_
- Derive the
Clonetrait, but without requiring all type arguments to implement [Clone]. - Copy_
- Derive the
Copytrait, but without requiring all type arguments to implement [Copy]. - Dupe
- Derive the
Dupetrait. - Dupe_
- Derive the
Dupetrait, but without requiring all type arguments to implementDupe.