Skip to main content

parsed_values

Function parsed_values 

Source
pub fn parsed_values<'t, 'v, T>(
    values: Vec<Vec<u8>>,
    name: &'t str,
) -> Result<Vec<T>, Error<'t, 'v>>
where T: FromStr, T::Err: Display,
Expand description

Convert every repeated value of one field through FromStr, reporting name for the first that fails.

Monomorphized once per target type rather than expanded once per field, and the empty case is answered at the field for the reason utf8_values gives.