struct_rest_pat

Function struct_rest_pat 

Source
pub(super) fn struct_rest_pat(
    sema: &Semantics<'_, RootDatabase>,
    _config: &HoverConfig<'_>,
    pattern: &RecordPat,
    edition: Edition,
    display_target: DisplayTarget,
) -> HoverResult
Expand description

Returns missing types in a record pattern. Only makes sense when there’s a rest pattern in the record pattern. i.e. let S {a, ..} = S {a: 1, b: 2}