Skip to main content

check_value

Function check_value 

Source
pub fn check_value(
    constraint: &ConstConstraint,
    value: &Value,
    name: &str,
) -> Option<Result<(), String>>
Expand description

Check value against constraint, naming the checked value name in the message. None when the value’s variant is one the constraint vocabulary has no reading of (anything but U64, F64 and Str).