enum_variants_with_paths

Function enum_variants_with_paths 

Source
fn enum_variants_with_paths(
    acc: &mut Completions,
    ctx: &CompletionContext<'_>,
    enum_: Enum,
    impl_: Option<&Impl>,
    cb: impl Fn(&mut Completions, &CompletionContext<'_>, Variant, ModPath),
)
Expand description

Calls the callback for each variant of the provided enum with the path to the variant. Skips variants that are visible with single segment paths.