Crate bitpiece

Source

Structs§

B1
a type used to represent a field with a specific amount of bits.
B2
a type used to represent a field with a specific amount of bits.
B3
a type used to represent a field with a specific amount of bits.
B4
a type used to represent a field with a specific amount of bits.
B5
a type used to represent a field with a specific amount of bits.
B6
a type used to represent a field with a specific amount of bits.
B7
a type used to represent a field with a specific amount of bits.
B8
a type used to represent a field with a specific amount of bits.
B9
a type used to represent a field with a specific amount of bits.
B10
a type used to represent a field with a specific amount of bits.
B11
a type used to represent a field with a specific amount of bits.
B12
a type used to represent a field with a specific amount of bits.
B13
a type used to represent a field with a specific amount of bits.
B14
a type used to represent a field with a specific amount of bits.
B15
a type used to represent a field with a specific amount of bits.
B16
a type used to represent a field with a specific amount of bits.
B17
a type used to represent a field with a specific amount of bits.
B18
a type used to represent a field with a specific amount of bits.
B19
a type used to represent a field with a specific amount of bits.
B20
a type used to represent a field with a specific amount of bits.
B21
a type used to represent a field with a specific amount of bits.
B22
a type used to represent a field with a specific amount of bits.
B23
a type used to represent a field with a specific amount of bits.
B24
a type used to represent a field with a specific amount of bits.
B25
a type used to represent a field with a specific amount of bits.
B26
a type used to represent a field with a specific amount of bits.
B27
a type used to represent a field with a specific amount of bits.
B28
a type used to represent a field with a specific amount of bits.
B29
a type used to represent a field with a specific amount of bits.
B30
a type used to represent a field with a specific amount of bits.
B31
a type used to represent a field with a specific amount of bits.
B32
a type used to represent a field with a specific amount of bits.
B33
a type used to represent a field with a specific amount of bits.
B34
a type used to represent a field with a specific amount of bits.
B35
a type used to represent a field with a specific amount of bits.
B36
a type used to represent a field with a specific amount of bits.
B37
a type used to represent a field with a specific amount of bits.
B38
a type used to represent a field with a specific amount of bits.
B39
a type used to represent a field with a specific amount of bits.
B40
a type used to represent a field with a specific amount of bits.
B41
a type used to represent a field with a specific amount of bits.
B42
a type used to represent a field with a specific amount of bits.
B43
a type used to represent a field with a specific amount of bits.
B44
a type used to represent a field with a specific amount of bits.
B45
a type used to represent a field with a specific amount of bits.
B46
a type used to represent a field with a specific amount of bits.
B47
a type used to represent a field with a specific amount of bits.
B48
a type used to represent a field with a specific amount of bits.
B49
a type used to represent a field with a specific amount of bits.
B50
a type used to represent a field with a specific amount of bits.
B51
a type used to represent a field with a specific amount of bits.
B52
a type used to represent a field with a specific amount of bits.
B53
a type used to represent a field with a specific amount of bits.
B54
a type used to represent a field with a specific amount of bits.
B55
a type used to represent a field with a specific amount of bits.
B56
a type used to represent a field with a specific amount of bits.
B57
a type used to represent a field with a specific amount of bits.
B58
a type used to represent a field with a specific amount of bits.
B59
a type used to represent a field with a specific amount of bits.
B60
a type used to represent a field with a specific amount of bits.
B61
a type used to represent a field with a specific amount of bits.
B62
a type used to represent a field with a specific amount of bits.
B63
a type used to represent a field with a specific amount of bits.
B64
a type used to represent a field with a specific amount of bits.
BitLength
an empty struct used to represent a specific bit length. this is then combined with some traits (ExactAssociatedStorage, AssociatedStorage) to perform operations on the specified bit length.
BitsMut
a convenience type for interacting with the bits of an underlying storage type, starting at a specific bit index. this is useful for implementing mutable references.
GenericBitPieceMut
a generic implementation of the BitPieceMut trait used for convenience.

Traits§

AssociatedStorage
a trait implemented for all BitLength types that are small enough and provides the minimal storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
BitPiece
a bitpiece. this is the core trait of this crate and represents a type with a specified bit length which can be used in a standalone way or inside another bitpiece.
BitPieceMut
a mutable reference to a bitpiece inside another bitpiece.
BitStorage
a type which can be used as the internal storage of a bitpiece.
ExactAssociatedStorage
a trait implemented for BitLength types that have an exact associated storage type, for example u8 or u16.

Functions§

extract_bits
extracts some bits from a value
extract_bits_noshift
extracts some bits (mask only, no shift) from a value
modify_bits
returns a new value with the specified bit range modified to the new value

Attribute Macros§

bitpiece
an attribute for defining bitfields.