Skip to main content

required_count

Function required_count 

Source
pub const fn required_count(omittable: &[bool]) -> usize
Expand description

Number of required parameters for a signature, given for every parameter whether it may be omitted (nullable or defaulted).

Follows the PHP rule: only the trailing run of omittable parameters is optional, an omittable parameter followed by a required one stays required.