Skip to main content

enum_matches

Function enum_matches 

Source
fn enum_matches(a: &TypeAnnotation, b: &TypeAnnotation) -> bool
Expand description

Returns true if a and b are the same named tag (enum), regardless of Enum/CEnum (mutable/const) mismatch.