Skip to main content

count_elements

Macro count_elements 

Source
macro_rules! count_elements {
    ($arr1:expr, $arr2:expr) => { ... };
}
Expand description

Counts the number of elements in two array-like structs.

§Arguments

  • arr1 - First array-like struct to count elements of.
  • arr2 - Second array-like struct to count elements of.

§Returns

Tuple:

  1. Number of elements in arr1.
  2. Number of elements in arr2.