rust-embedded / rust-embedded/heapless

Add CopyVec and CopyString

Open
#575 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2k
Forks
253
Avg merge
1d 2h
Merged PRs (30d)
1

Description

Issue #230 was to make Vec and String implement Copy. However, as explained by @MarcusGrass, @delta4chat and others in #230, it is not possible to conditionally implement Copy on Vec if Vec is to allow a custom Drop impl, which the team wants.

An alternative suggested by @nickray and @japaric was to introduce a type CopyVec. This would provide an avenue to CopyString. The motivation for a Copy String is still the same as it was in #230, so I hope the team can explore other avenues.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reviewing the discussion in issues #230 and #575, then determine the scope for introducing CopyVec and whether it provides a path to CopyString; the work is complete when that design is implemented and its behavior is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.