File: bitfield_no_std.rs

package info (click to toggle)
rust-bitfields 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 436 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 118 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12

use bitfields::bitfield;

#[bitfield(u32)]
struct Reg {
    a: u8,
    b: u8,
    c: u8,
    d: u8,
}

fn main() { }