node_flow/describe/
mod.rs

1//! This module contains all the necessary components for describing the structure of a flow.
2//!
3//! It also contains a [`D2Describer`] for formatting [`Description`] into [D2](https://d2lang.com/) graph syntax.
4//!
5//! For details, see the documentation of [`Description`].
6
7mod design;
8pub use design::*;
9
10#[cfg(feature = "d2describer")]
11mod d2;
12#[cfg(feature = "d2describer")]
13pub use d2::*;
14
15pub(crate) fn remove_generics_from_name(orig_name: &mut String) {
16    let generic_start_idx = orig_name.find('<').unwrap_or(orig_name.len());
17    orig_name.truncate(generic_start_idx);
18}