diff options
Diffstat (limited to 'mingling_core/src/any.rs')
| -rw-r--r-- | mingling_core/src/any.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mingling_core/src/any.rs b/mingling_core/src/any.rs index d1ab3d3..21611a7 100644 --- a/mingling_core/src/any.rs +++ b/mingling_core/src/any.rs @@ -117,11 +117,21 @@ pub enum ChainProcess<G> { /// /// - `Chain`: Continue execution to the next chain /// - `Renderer`: Send output to renderer and end execution +#[derive(Debug, PartialEq, Eq)] pub enum Next { Chain, Renderer, } +impl std::fmt::Display for Next { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Next::Chain => write!(f, "Chain"), + Next::Renderer => write!(f, "Renderer"), + } + } +} + impl<G> From<AnyOutput<G>> for ChainProcess<G> { fn from(value: AnyOutput<G>) -> Self { ChainProcess::Ok((value, Next::Chain)) |
