Comments (3)
I am not sure this would have great value for micromap
: it is meant to use the stack whereas Vec
and HashMap
are intended to use the heap. Using micromap
with types that do not implement Copy
would probably be an unusual case.
Also depending on how far you want to take this issue (concretely: remove Clone
as well), this would have an impact on the current API as e.g. .into_iter(&self)
really cannot do without this.
from micromap.
@WiebeCnossen I'm not really an expert in this area. Help me understand. Now, when we put a pair into the array, we do memcpy
. If we use Clone
, we will put pointers into our array? Is this your concern?
from micromap.
we don't use Copy
anymore
from micromap.
Related Issues (20)
- is Map::clear() supposed to do drop()? HOT 2
- get rid of Clone trait for V and K wherewer possible HOT 1
- no_std support HOT 1
- Add `heapless` benchmark comparison HOT 4
- serde dependency should be optional HOT 5
- code coverage dropped after the introduction of Set HOT 1
- let's add jonhoo/flurry to the test
- benchmark with a graph HOT 3
- Map::Insert breaks API safety rules HOT 1
- Optimize loops by exploiting invariant self.next <= N HOT 1
- Using swap deletion to maintain 'packed' array HOT 2
- Feature request: Set HOT 2
- Possible Undefined Behavior with `Map::new` in safe Rust HOT 11
- We are slower than linear_map::LinearMap and heapless::LinearMap HOT 2
- Memory leak because of missing `Drop` implementation. HOT 7
- less deps HOT 3
- insert() can be faster HOT 3
- even faster
- Map::iter_mut() is not implemented HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micromap.