///
/// Check if the enum values are in a single sequnce
///
Check if the enum values are in a single sequnce
Check if the enum values are in a single sequnce
fn check_sequential(enum_def: &Enum) -> bool {
        if enum_def.entries.is_empty() {
            return false;
        }
        let mut current = enum_def.entries[0].value;
        for e in &enum_def.entries {
            if current != e.value {
                return false;
            }
            current += 1;
        }
        true
    }
fn check_sequential ( enum_def : & Enum ) -> bool { if enum_def . entries . is_empty ( ) { return false ; } let mut current = enum_def . entries [ 0 ] . value ; for e in & enum_def . entries { if current != e . value { return false ; } current += 1 ; } true }
Check if the enum values are in a single sequnce
Check if the enum values are in a single sequnce
enum_def
&Enum