Return a unique alias with the provided prefix
(&self, prefix: &str)
| 49 | |
| 50 | /// Return a unique alias with the provided prefix |
| 51 | pub fn next(&self, prefix: &str) -> String { |
| 52 | let id = self.next_id.fetch_add(1, Ordering::Relaxed); |
| 53 | format!("{prefix}_{id}") |
| 54 | } |
| 55 | } |
no outgoing calls