1 2 3 4 5 6 7 8 9 10 11 12 13 14
use log::info; use super::Action; /// Deletes everything in the input. #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] pub struct Deletion {} impl Action for Deletion { fn act(&self, input: &str) -> String { info!("Deleting: '{}'", input.escape_debug()); String::new() } }