Function gutenberg_post_parser::parser::namespaced_block_name [−]
pub fn namespaced_block_name(i: Input) -> IResult<Input, (Input, Input), u32>
Recognize a namespaced block name.
Examples
extern crate gutenberg_post_parser; use gutenberg_post_parser::parser::namespaced_block_name; let input = &b"foo/bar baz"[..]; let output = Ok( ( // The remaining data. &b" baz"[..], // The Abstract Syntax Tree. (&b"foo"[..], &b"bar"[..]) ) ); assert_eq!(namespaced_block_name(input), output);