1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00

docs for derive

This commit is contained in:
Robin Appelman 2019-02-28 00:08:35 +01:00
commit b45ca3856e
3 changed files with 29 additions and 3 deletions

View file

@ -17,7 +17,7 @@
//! float: f32,
//! #[size = 3]
//! asd: u8,
//! #[size_bits = 2] // first read 2 bits, then use the resulting value as size as size for the read
//! #[size_bits = 2] // first read 2 bits as unsigned integer, then use the resulting value as size for the read
//! dynamic_length: u8,
//! #[size = "asd"] // use a previously defined field as size
//! previous_field: u8,