clippy_utils

Function is_enum_variant_ctor

source
pub fn is_enum_variant_ctor(
    cx: &LateContext<'_>,
    enum_item: Symbol,
    variant_name: Symbol,
    ctor_call_id: DefId,
) -> bool
Expand description

Checks if {ctor_call_id}(...) is {enum_item}::{variant_name}(...).