constraints

Macro constraints 

Source
macro_rules! constraints {
    ($($constraint:expr),+ $(,)?) => { ... };
}
Expand description

Helper macro to create an array of constant constraints.

Usage:

use rasn::{types::Constraints, macros::*};
const CONSTRAINTS: Constraints = constraints!(value_constraint!(0, 100), size_constraint!(0, 100));

See other macros about the parameter usage.