pub fn ident(input: &str) -> IResult<&str, &str>
Expand description
Names that can be used for structs, packages, or fields
use rust_lcm_codegen::parser::ident;
assert_eq!(ident("foo"), Ok(("", "foo")));
assert_eq!(ident("foo_bar"), Ok(("", "foo_bar")));
assert_eq!(ident(""), Err(Err::Error(("", ErrorKind::TakeWhile1))));