Skip to content

feat: derive clone for RootedStruct#323

Merged
baszalmstra merged 1 commit intomun-lang:masterfrom
baszalmstra:feat/implement_clone_rooted_struct
May 8, 2021
Merged

feat: derive clone for RootedStruct#323
baszalmstra merged 1 commit intomun-lang:masterfrom
baszalmstra:feat/implement_clone_rooted_struct

Conversation

@baszalmstra
Copy link
Copy Markdown
Collaborator

Derive Clone for RootedStruct. All types contained in the RootedStruct already properly support rooting so this was trivial.

The Clone::clone function for a RootedStruct clones the references to the struct instead of the contents of the struct. Is that desirable? I think so because to me it would make more sense to have to clone the struct itself in Mun and return a new rooted struct.

@baszalmstra baszalmstra added the type: perf Changes that improve performance label Apr 23, 2021
@baszalmstra baszalmstra requested a review from Wodann April 23, 2021 18:06
@baszalmstra baszalmstra self-assigned this Apr 23, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 23, 2021

Codecov Report

Merging #323 (1464216) into master (ba3bdd8) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #323      +/-   ##
==========================================
- Coverage   80.59%   80.59%   -0.01%     
==========================================
  Files         259      259              
  Lines       15561    15561              
==========================================
- Hits        12542    12541       -1     
- Misses       3019     3020       +1     
Impacted Files Coverage Δ
crates/mun_runtime/src/adt.rs 76.00% <ø> (ø)
crates/mun_memory/tests/diff/util.rs 83.63% <0.00%> (-0.91%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba3bdd8...1464216. Read the comment docs.

@baszalmstra baszalmstra merged commit d2b6c9c into mun-lang:master May 8, 2021
@Wodann Wodann added this to the Mun v0.4.0 milestone Jul 8, 2022
@Wodann Wodann added type: feat New feature or request and removed type: perf Changes that improve performance labels Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants