File: bitfield_padding_field_with_access.rs

package info (click to toggle)
rust-bitfields 0.12.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 400 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 119 bytes parent folder | download
1
2
3
4
5
6
7
8
9
use bitfields::bitfield;

#[bitfield(u8)]
struct Bitfield {
    #[bits(access = ro)]
    _padding: u8,
}

fn main() {}