person_struct_parser 0.4.2

Rust parser for person struct #parser #grammar #person_struct
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use person_struct_parser::person_module::*;

#[cfg(test)]
mod simple_tests {
    use super::*;

    #[test]
    #[should_panic]
    fn unequal() {
        let _person: Person = parse("DavydLviv").unwrap();
    }
    #[test]
    #[should_panic]
    fn incorrect() {
        let _person: Person = parse("25").unwrap();
    }
}