()
| 147 | /// lazily from the current position. |
| 148 | #[inline(always)] |
| 149 | pub fn exhausted() -> bool { |
| 150 | let threshold = THRESHOLD.with(|t| t.get()); |
| 151 | if threshold == 0 { |
| 152 | begin(); |
| 153 | return exhausted(); |
| 154 | } |
| 155 | if current_sp() < threshold { |
| 156 | OVERFLOWED.with(|o| o.set(true)); |
| 157 | true |
| 158 | } else { |
| 159 | false |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | /// Whether the guard tripped since the last `begin()`. |
| 164 | pub fn overflowed() -> bool { |
nothing calls this directly
no test coverage detected