Skip to main content

is_byte_aligned

Function is_byte_aligned 

Source
pub fn is_byte_aligned(ty: &ResolvedType, registry: &TypeRegistry) -> bool
Expand description

Returns true if the type is byte-aligned (i.e., not sub-byte).

Returns false for: Bool, SubByte, exhaustive enum with wire_bits < 8.