Skip to content

Add Trivially versions of traits - #691

Merged
nunoplopes merged 8 commits into
Cpp2Rust:masterfrom
lucic71:copy-construct-instead-of-clone
Dec 1, 2026
Merged

nunoplopes merged 8 commits into
Cpp2Rust:masterfrom
lucic71:copy-construct-instead-of-clone

Conversation

@lucic71

@lucic71 lucic71 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Add TriviallyCopyConstructible, TriviallyCopyable, etc.

Ptr::read is now bounded by TriviallyCopyable.

@lucic71

lucic71 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Also derive only TriviallyCopyable where appropriate, it saves a lot of other implicit derives.

@nunoplopes
nunoplopes merged commit 1d7141d into Cpp2Rust:master Dec 1, 2026
7 of 9 checks passed
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.

2 participants