srgn 0.14.2

A grep-like tool which understands source code syntax and allows for manipulation in addition to search
Documentation
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()
    }
}