parse_repeated_field

Function parse_repeated_field 

Source
pub fn parse_repeated_field<T: SwiftField>(
    parser: &mut MessageParser<'_>,
    tag: &str,
) -> Result<Option<Vec<T>>, ParseError>
Expand description

Parse repeated fields and return as Option<Vec>. Returns None if no fields found, Some(vec) otherwise.