Language

Package: rust-packed-struct @ 0.3.0

Synopsis

Binary-level structure packing and unpacking generator

Description

This package provides bit-level packing an unpacking of structs. The library provides a meta-programming approach, using attributes to define fields and how they should be packed. The resulting trait implementations provide safe packing, unpacking and runtime debugging formatters with per-field documentation generated for each structure.

  • Plain Rust structures, decorated with attributes

  • MSB or LSB integers of user-defined bit widths

  • Primitive enum code generation helper

  • MSB0 or LSB0 bit positioning

  • Documents the field's packing table

  • Runtime packing visualization

  • Nested packed types

  • Arrays of packed structures as fields

  • Reserved fields, their bits are always 0 or 1

Home page
http://www.hashmismatch.net/libraries/packed-struct/
Location
gnu/packages/crates-io.scm (line: 33785, column: 2)
Licenses

Lint warnings

LinterMessageLocation
formatting

Look for formatting issues in the source

tabulation on line 33793, column 0
formatting

Look for formatting issues in the source

tabulation on line 33795, column 0
formatting

Look for formatting issues in the source

tabulation on line 33796, column 0