Comments (2)
You can work around this using the following code:
let mut foo = Foo(buffer);
let foo = Foo(&mut foo.0[..]);
foo.foo();
But this requires to have a mut
instance, even for "read-only" operations.
from rust-bitfield.
Like #28, this is fixed in the beta toolchain.
But this requires to have a mut instance, even for "read-only" operations.
This part of the issue is the same as #23
from rust-bitfield.
Related Issues (20)
- Add design notes HOT 1
- Document attributes HOT 4
- bitfield should create constructor methods HOT 3
- Use the :vis fragment specifier HOT 3
- `into` should affect the setter
- Make getters work with immutable Data HOT 1
- About endianness HOT 2
- Please document the `index: usize` and `value: $from` arguments that getters and setters require HOT 4
- Unable to "Debug" for types that are backed by an array >32bytes HOT 5
- feature: API to set a range of bits using offset and length HOT 3
- Trying to use it for my library but cannot compile. HOT 2
- How to properly embedded bitfield structure inside other one?
- Is there any difference between master and tagged version? HOT 6
- Support `defmt` HOT 3
- attempt to shift right with overflow' HOT 1
- Feature request: Fields constructed of multiple ranges of bits HOT 4
- Feature request: Right-padded fields
- Generate masks for the fields HOT 3
- `const fn` getters 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 rust-bitfield.