1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
// Copyright (c) 2020 Tianyi Shi
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT

use crate::common::parser::{parse_multiline_string, FieldParser};
use crate::types::*;
pub struct TitleParser;
impl FieldParser for TitleParser {
    type Output = Title;
    fn parse(inp: &[u8]) -> nom::IResult<&[u8], Self::Output> {
        parse_multiline_string(inp, b"TITLE ")
    }
}