asterix_parser 0.1.1

Playground do Protocolo ASTERIX
Documentation
1
2
3
4
5
6
7
8
9
10

pub trait Describe {
    fn get_indented_description(&self, indent: &mut usize, text: String) -> String {
        *indent += 1;
        let indentation_spaces = "  ".repeat(*indent);
        format!("{}{}", indentation_spaces, text)
    }

    fn describe(&self, indent: &mut usize) -> String;
}