Configure whether memory and stack allocation failures trap immediately.
(mut self, trap_on_oom: bool)
| 170 | |
| 171 | /// Configure whether memory and stack allocation failures trap immediately. |
| 172 | pub fn with_trap_on_oom(mut self, trap_on_oom: bool) -> Self { |
| 173 | self.trap_on_oom = trap_on_oom; |
| 174 | self |
| 175 | } |
| 176 | |
| 177 | /// Get the current fuel policy |
| 178 | pub fn fuel_policy(&self) -> FuelPolicy { |