Skip to main content

const_matches

Function const_matches 

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

Returns true if a is the const variant of b or vice versa (e.g. CInt <-> Int).