Skip to main content

cpp_holder

Function cpp_holder 

Source
pub fn cpp_holder(bits: u16) -> Type
Expand description

The unsigned integer a bit width calls for.

Public because the codec emitter has to cast into exactly this type: a bitfield is unpacked out of a 64-bit anchor and assigned to a member whose width is decided here, and a second copy of the rule would narrow into a type this one had moved on from.