Skip to main content

array

Function array 

Source
pub fn array<T: Flat, B: Emit<T>, const N: usize>(
    builders: [B; N],
) -> impl Emit<[T; N]>
Expand description

Construct a [T; N] from an array of Emit<T> builders.

Used as a wrapper when passing builders to make() for [T; N] fields:

Term::make_brif(cond, array([Jmp::make(...), Jmp::make(...)]))