match_each_unsigned_pvector

Macro match_each_unsigned_pvector 

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

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

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

See match_each_pvector for similar usage.

ยงPanics

Panics if the vector passed in to the macro is not an unsigned vector variant.