check_vector

Function check_vector 

Source
pub fn check_vector(
    fields: &IndexMap<String, DmapField>,
    name: &str,
    expected_type: &Type,
) -> Result<(), DmapError>
Expand description

Verify that name exists in fields and is of the correct Type.

ยงErrors

If name is not in fields.

If name is in fields, but is not a DmapField::Vector of expected_type.