Skip to main content

describe_variant_named

Function describe_variant_named 

Source
pub fn describe_variant_named(source: &str, name: &str) -> Option<String>
Expand description

#1888: the hover for a sum variant named bare, as a pattern or a constructor names it (Circle(r)), when exactly one sum in source declares a variant of that name; None otherwise, so an ambiguous name answers nothing rather than the wrong variant.