Returns true if the current frame is [ControlStackFrame::If].
(&self)
| 1050 | |
| 1051 | /// Returns true if the current frame is [ControlStackFrame::If]. |
| 1052 | pub fn is_if(&self) -> bool { |
| 1053 | match self { |
| 1054 | Self::If { .. } => true, |
| 1055 | _ => false, |
| 1056 | } |
| 1057 | } |
| 1058 | |
| 1059 | /// Returns true if the current frame is [ControlStackFrame::Loop]. |
| 1060 | pub fn is_loop(&self) -> bool { |