Comments (2)
I'm not fundamentally opposed, but they seem like terribly expensive things to do by-value. What's your use-case look like? Are you sure you want to be making that many allocations?
from bit-vec.
Hi !
I second the need of shift operations. A use case would be : if a bitvec represents possible moves on a board, >> 1
would represent the set of adjacent moves.
About the allocation, I think implementing the assign operations shl_assign, shr_assign
do not incur additional allocations. Would it be better to implement shift that way ?
from bit-vec.
Related Issues (20)
- Allow all non-resizing bitvec methods to take &self and use internal mutation? HOT 1
- Concurrent read/write support HOT 1
- 'blocks_for_bits' implementation.
- More efficient `reverse_bits` implementation.
- Maintenance? HOT 11
- Question: Best way to negate a section of BitVec? HOT 1
- Set/unset bits iterator HOT 1
- Add shrink_to_fit and split_off methods HOT 1
- Add a BitVecView<'a> that references the BitVec with offset / len HOT 4
- Illegal memory access HOT 5
- `set_all` slow? HOT 3
- no way to disable serde on 0.6 with stable Rust HOT 2
- `BitVec::append` fails silently HOT 4
- Function get(&self, i: usize) HOT 2
- Push new documentation HOT 1
- Add a method to get a partition of `BitVec` HOT 2
- Implement operators for `BitAnd`, `BitOr` and `BitXor`
- Support Custom Allocators HOT 2
- Infinite recursion issue HOT 4
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 bit-vec.