Skip to main content

multiple_of

Function multiple_of 

Source
pub fn multiple_of(value: i64, multiple: i64) -> Result<(), FieldError>
Expand description

Ensure value is a multiple of multiple.

Returns an error when multiple is 0 (the check is undefined and must not panic).