Skip to main content

modifier_prefix

Function modifier_prefix 

Source
fn modifier_prefix<'hir>(
    hir: &'hir Hir<'hir>,
    fid: FunctionId,
) -> Option<(&'hir Function<'hir>, Vec<&'hir Stmt<'hir>>)>
Expand description

Returns the modifier function and the statements preceding its unique _; placeholder, or None when fid is not an eligible single-placeholder modifier.