Macro require_len

Source
macro_rules! require_len {
    ($left:expr, $right:expr) => { ... };
}
Expand description

Verifies that the length of the LHS expression is exactly the RHS expression. Fails with a BadLength error if not.