Skip to main content

contract_compact

Function contract_compact 

Source
pub const fn contract_compact<const N: usize, const M: usize>(
    entries: [(bool, ContractEntry); N],
) -> [ContractEntry; M]
Expand description

The enabled entries of entries, in order. M must be contract_len of entries.

§Panics

Panics (at compile time, in a constant) when M isn’t the number of enabled entries.