Skip to main content

check_function

Function check_function 

Source
pub fn check_function(func: &Function) -> Option<Rejection>
Expand description

Convenience wrapper: return the first rejection or None.

Useful for the call-site shortcut β€œis this function admissible?” β€” avoids the Vec allocation when the caller does not need the full list. Equivalent to scan_function(func).into_iter().next() but does not walk the rest of the function once a rejection is found.