Configures these flags with the specified trap code `code`. A trap code indicates that this memory operation cannot be optimized away and it must "stay where it is" in the programs. Traps are considered side effects, for example, and have meaning through the trap code that is communicated and which instruction trapped.
(mut self, code: Option<TrapCode>)
| 374 | /// considered side effects, for example, and have meaning through the trap |
| 375 | /// code that is communicated and which instruction trapped. |
| 376 | pub const fn with_trap_code(mut self, code: Option<TrapCode>) -> Self { |
| 377 | self.flags = self.flags.with_trap_code(code); |
| 378 | self |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | impl From<MemFlagsData> for MachMemFlags { |
no outgoing calls