use super::FlowOutcome;
pub fn is_chain(outcome: &FlowOutcome) -> bool {
matches!(outcome, FlowOutcome::Chain)
}
pub fn skip_count(outcome: &FlowOutcome) -> Option<u32> {
match outcome {
FlowOutcome::Skip(n) => Some(*n),
_ => None,
}
}
pub fn skip_after_marker(outcome: &FlowOutcome) -> Option<&str> {
match outcome {
FlowOutcome::SkipAfter(marker) => Some(marker),
_ => None,
}
}