Crate bitpiece

Crate bitpiece 

Source

Macros§

bitpiece_check_base_impl
bitpiece_check_const_assert_bits_eq
bitpiece_check_do_for_each_value
bitpiece_check_fields_impl
bitpiece_check_full_impl
bitpiece_check_gen_values_to_check
bitpiece_check_mut_impl
bitpiece_define_mut_ref_type
const_for
A for loop that is usable in const contexts.
paste

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.
B1MutRef
B2MutRef
B3MutRef
B4MutRef
B5MutRef
B6MutRef
B7MutRef
B8MutRef
B9MutRef
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.
B10MutRef
B11MutRef
B12MutRef
B13MutRef
B14MutRef
B15MutRef
B16MutRef
B17MutRef
B18MutRef
B19MutRef
B20MutRef
B21MutRef
B22MutRef
B23MutRef
B24MutRef
B25MutRef
B26MutRef
B27MutRef
B28MutRef
B29MutRef
B30MutRef
B31MutRef
B32MutRef
B33MutRef
B34MutRef
B35MutRef
B36MutRef
B37MutRef
B38MutRef
B39MutRef
B40MutRef
B41MutRef
B42MutRef
B43MutRef
B44MutRef
B45MutRef
B46MutRef
B47MutRef
B48MutRef
B49MutRef
B50MutRef
B51MutRef
B52MutRef
B53MutRef
B54MutRef
B55MutRef
B56MutRef
B57MutRef
B58MutRef
B59MutRef
B60MutRef
B61MutRef
B62MutRef
B63MutRef
B64MutRef
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.
BitPieceBoolConverter
BitPieceBoolMutRef
BitPieceI8Converter
BitPieceI8MutRef
BitPieceI16Converter
BitPieceI16MutRef
BitPieceI32Converter
BitPieceI32MutRef
BitPieceI64Converter
BitPieceI64MutRef
BitPieceU8Converter
BitPieceU8MutRef
BitPieceU16Converter
BitPieceU16MutRef
BitPieceU32Converter
BitPieceU32MutRef
BitPieceU64Converter
BitPieceU64MutRef
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 to bitpieces.
SB1
a type used to represent a field with a specific amount of bits.
SB2
a type used to represent a field with a specific amount of bits.
SB3
a type used to represent a field with a specific amount of bits.
SB4
a type used to represent a field with a specific amount of bits.
SB5
a type used to represent a field with a specific amount of bits.
SB6
a type used to represent a field with a specific amount of bits.
SB7
a type used to represent a field with a specific amount of bits.
SB8
a type used to represent a field with a specific amount of bits.
SB9
a type used to represent a field with a specific amount of bits.
SB1MutRef
SB2MutRef
SB3MutRef
SB4MutRef
SB5MutRef
SB6MutRef
SB7MutRef
SB8MutRef
SB9MutRef
SB10
a type used to represent a field with a specific amount of bits.
SB11
a type used to represent a field with a specific amount of bits.
SB12
a type used to represent a field with a specific amount of bits.
SB13
a type used to represent a field with a specific amount of bits.
SB14
a type used to represent a field with a specific amount of bits.
SB15
a type used to represent a field with a specific amount of bits.
SB16
a type used to represent a field with a specific amount of bits.
SB17
a type used to represent a field with a specific amount of bits.
SB18
a type used to represent a field with a specific amount of bits.
SB19
a type used to represent a field with a specific amount of bits.
SB20
a type used to represent a field with a specific amount of bits.
SB21
a type used to represent a field with a specific amount of bits.
SB22
a type used to represent a field with a specific amount of bits.
SB23
a type used to represent a field with a specific amount of bits.
SB24
a type used to represent a field with a specific amount of bits.
SB25
a type used to represent a field with a specific amount of bits.
SB26
a type used to represent a field with a specific amount of bits.
SB27
a type used to represent a field with a specific amount of bits.
SB28
a type used to represent a field with a specific amount of bits.
SB29
a type used to represent a field with a specific amount of bits.
SB30
a type used to represent a field with a specific amount of bits.
SB31
a type used to represent a field with a specific amount of bits.
SB32
a type used to represent a field with a specific amount of bits.
SB33
a type used to represent a field with a specific amount of bits.
SB34
a type used to represent a field with a specific amount of bits.
SB35
a type used to represent a field with a specific amount of bits.
SB36
a type used to represent a field with a specific amount of bits.
SB37
a type used to represent a field with a specific amount of bits.
SB38
a type used to represent a field with a specific amount of bits.
SB39
a type used to represent a field with a specific amount of bits.
SB40
a type used to represent a field with a specific amount of bits.
SB41
a type used to represent a field with a specific amount of bits.
SB42
a type used to represent a field with a specific amount of bits.
SB43
a type used to represent a field with a specific amount of bits.
SB44
a type used to represent a field with a specific amount of bits.
SB45
a type used to represent a field with a specific amount of bits.
SB46
a type used to represent a field with a specific amount of bits.
SB47
a type used to represent a field with a specific amount of bits.
SB48
a type used to represent a field with a specific amount of bits.
SB49
a type used to represent a field with a specific amount of bits.
SB50
a type used to represent a field with a specific amount of bits.
SB51
a type used to represent a field with a specific amount of bits.
SB52
a type used to represent a field with a specific amount of bits.
SB53
a type used to represent a field with a specific amount of bits.
SB54
a type used to represent a field with a specific amount of bits.
SB55
a type used to represent a field with a specific amount of bits.
SB56
a type used to represent a field with a specific amount of bits.
SB57
a type used to represent a field with a specific amount of bits.
SB58
a type used to represent a field with a specific amount of bits.
SB59
a type used to represent a field with a specific amount of bits.
SB60
a type used to represent a field with a specific amount of bits.
SB61
a type used to represent a field with a specific amount of bits.
SB62
a type used to represent a field with a specific amount of bits.
SB63
a type used to represent a field with a specific amount of bits.
SB64
a type used to represent a field with a specific amount of bits.
SB10MutRef
SB11MutRef
SB12MutRef
SB13MutRef
SB14MutRef
SB15MutRef
SB16MutRef
SB17MutRef
SB18MutRef
SB19MutRef
SB20MutRef
SB21MutRef
SB22MutRef
SB23MutRef
SB24MutRef
SB25MutRef
SB26MutRef
SB27MutRef
SB28MutRef
SB29MutRef
SB30MutRef
SB31MutRef
SB32MutRef
SB33MutRef
SB34MutRef
SB35MutRef
SB36MutRef
SB37MutRef
SB38MutRef
SB39MutRef
SB40MutRef
SB41MutRef
SB42MutRef
SB43MutRef
SB44MutRef
SB45MutRef
SB46MutRef
SB47MutRef
SB48MutRef
SB49MutRef
SB50MutRef
SB51MutRef
SB52MutRef
SB53MutRef
SB54MutRef
SB55MutRef
SB56MutRef
SB57MutRef
SB58MutRef
SB59MutRef
SB60MutRef
SB61MutRef
SB62MutRef
SB63MutRef
SB64MutRef

Enums§

BitPieceStorageMutRef
a mutable reference to the storage type of some bitpiece.

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
BitPieceHasFields
BitPieceHasMutRef
BitPieceMutRef
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§

const_array_max_u64
const_array_min_u64
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.