Skip to content

add clone_from and deep_clone_from #10376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

add clone_from and deep_clone_from #10376

wants to merge 2 commits into from

Conversation

thestinger
Copy link
Contributor

Closes #10240

@@ -29,12 +29,27 @@ pub trait Clone {
/// are copied to maintain uniqueness, while the contents of
/// managed pointers are not copied.
fn clone(&self) -> Self;

/// Perform copy-assignment from `source`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing .

bors added a commit that referenced this pull request Nov 9, 2013
@bors bors closed this Nov 9, 2013
@thestinger thestinger deleted the clone branch November 9, 2013 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add an assign default method to Clone
3 participants