k2f_idml 0.3.3

K2F lock → IDML exporter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use k2f_core::{for_each_node, RunningBlockNode};
use std::collections::HashSet;

pub(crate) fn running_ids(running: &[RunningBlockNode]) -> HashSet<String> {
    let mut ids = HashSet::new();
    for rb in running {
        for_each_node(&rb.node, &mut |n| {
            ids.insert(n.id.clone());
        });
    }
    ids
}