Skip to main content

snippet

Function snippet 

Source
fn snippet<'gcx>(
    ctx: &LintContext<'_, '_>,
    gcx: Gcx<'gcx>,
    func: &'gcx Function<'gcx>,
    name: &str,
    before: &'gcx [Stmt<'gcx>],
    after: &'gcx [Stmt<'gcx>],
) -> Option<Suggestion>