Function gutenberg_post_parser::parser::block_name[]

pub fn block_name(i: Input) -> IResult<Input, (Input, Input), u32>

Recognize a fully-qualified block name.

Examples

extern crate gutenberg_post_parser;

use gutenberg_post_parser::parser::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!(block_name(input), output);