| 323 | // Packing so that the overall size is 6 bytes instead of 8. |
| 324 | #[repr(Rust, packed(2))] |
| 325 | pub struct Operand { |
| 326 | /// `OperandKind` encoded in 32 bits: |
| 327 | /// |
| 328 | /// kind:3 unused:1 value:28 |
| 329 | kind: u32, |
| 330 | |
| 331 | /// `OperandConstraint` encoded in 16 bits: |
| 332 | /// |
| 333 | /// type:2 unused:2 index:12 |
| 334 | constraint: u16, |
| 335 | } |
| 336 | |
| 337 | impl Operand { |
| 338 | /// Constructs a new operand. |
nothing calls this directly
no outgoing calls
no test coverage detected