-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
Description
This would mean derived clone implementations can reuse the resources of interior types (especially important with types containing things like Vec
) when cloning into an already-created instance.
Currently doing this is difficult with how #[deriving]
works internally (needs a mutable borrow of the contents of self
, and needs to avoid borrowing self
for enum variants that mismatch or else the requisite *self = other.clone()
implementation won't work).
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.