Skip to main content

pair_of

Macro pair_of 

Source
macro_rules! pair_of {
    ($decl:ty) => { ... };
    ($init:expr_2021) => { ... };
}
Expand description

Expands a type or expression into a two-element tuple with identical entries.

The type form produces (T, T). The expression form evaluates the supplied expression separately for each tuple element.