mod binding;
mod content;
mod entering;
mod event_loop;
mod exit_entry;
mod invoke;
mod machine_state;
mod name_match;
mod selection;
mod step;
#[cfg(test)]
mod tests;
pub(crate) use content::{Counters, Route, Routes, Sends, parse_target};
pub(crate) use event_loop::{budget_exhausted, cancel, deliver_internal, handle_event, initialize};
pub(crate) use invoke::is_scxml_type;
pub(crate) use machine_state::{Event, MachineState, RoundBudget, StartOptions, Status};
use crate::machine::Chart;
use std::collections::{BTreeMap, BTreeSet};
pub(crate) type History = BTreeMap<usize, BTreeSet<usize>>;
#[derive(Debug, Clone, Copy)]
pub(crate) struct Snapshot<'a> {
pub(crate) chart: &'a Chart,
pub(crate) configuration: &'a BTreeSet<usize>,
pub(crate) history: &'a History,
}
impl Snapshot<'_> {
pub(crate) fn is_active(&self, index: usize) -> bool {
self.configuration.contains(&index)
}
}