Function validify::validate_contains
source · pub fn validate_contains<T: Contains>(
haystack: T,
needle: T::Needle<'_>,
not: bool
) -> boolExpand description
Validates whether the value contains the needle
The value needs to implement the Contains trait, which is implemented on String, str and Hashmap<String>
by default.