Skip to main content

requires_annotation

Function requires_annotation 

Source
pub fn requires_annotation(
    kind: DeclarationKind,
    index: usize,
    param: &TypedParam,
) -> bool
Expand description

Whether this parameter must carry an explicit type.

A default value does not exempt a parameter: options = nil still leaves every other shape a caller may pass unchecked. self in an impl or interface method is exempt because the enclosing header already names its type.