match_each_integer_pvector

Macro match_each_integer_pvector 

Source
macro_rules! match_each_integer_pvector {
    ($self:expr, | $vec:ident | $body:block) => { ... };
}
Expand description

Matches on all integer type variants of PrimitiveVector and executes the same code for each of the integer variant branches.

This macro eliminates repetitive match statements when implementing operations that need to work uniformly across all integer type variants (U8, U16, U32, U64, I8, I16, I32, I64).

See match_each_pvector for similar usage.

ยงPanics

Panics if the vector passed in to the macro is a float vector variant.