use std::{any::Any, rc::Rc}; use crate::{ context::CommandContext, exceptions::command_syntax_exception::CommandSyntaxException, }; // pub trait RedirectModifier { // fn apply(&self, context: &CommandContext) -> Result, CommandSyntaxException>; // } pub type RedirectModifier = dyn Fn(&CommandContext) -> Result>, CommandSyntaxException>;