///
/// Check if the enum values overlaps
///
Check if the enum values overlaps
Check if the enum values overlaps
fn check_overlapping(enum_def: &Enum) -> bool {
        let mut values = HashSet::<u64>::new();
        for v in &enum_def.entries {
            if values.contains(&v.value) {
                return true;
            } else {
                values.insert(v.value);
            }
        }
        false
    }
fn check_overlapping ( enum_def : & Enum ) -> bool { let mut values = HashSet :: < u64 > :: new ( ) ; for v in & enum_def . entries { if values . contains ( & v . value ) { return true ; } else { values . insert ( v . value ) ; } } false }
Check if the enum values overlaps
Check if the enum values overlaps
enum_def
&Enum