Function cargo_culture_kit::checklist::filter_to_requested_rules_from_checklist_file[][src]

pub fn filter_to_requested_rules_from_checklist_file<'path, 'rules>(
    culture_checklist_file_path: &'path Path,
    available_rules: &'rules [&Rule]
) -> Result<Vec<&'rules Rule>, FilterError>

Produces a filtered subset of the provided Rules by matching their descriptions to the lines of the the file specified by culture_checklist_file_path.

Errors

Returns a FilterError::RuleChecklistReadError error when one of the lines of the file does not match any of the provided Rule descriptions.