/// Iterate over each sub-leaf with an  address translation structure.
Iterate over each sub-leaf with an  address translation structure.
Iterate over each sub - leaf with an address translation structure .
fn next(&mut self) -> Option<DatInfo> {
        loop {
            // Sub-leaf index n is invalid if n exceeds the value that sub-leaf 0 returns in EAX
            if self.current > self.count {
                return None;
            }
            let res = cpuid!(EAX_DETERMINISTIC_ADDRESS_TRANSLATION_INFO, self.current);
            self.current += 1;
            // A sub-leaf index is also invalid if EDX[4:0] returns 0.
            if get_bits(res.edx, 0, 4) == 0 {
                // Valid sub-leaves do not need to be contiguous or in any particular order.
                // A valid sub-leaf may be in a higher input ECX value than an invalid sub-leaf
                // or than a valid sub-leaf of a higher or lower-level struc-ture
                continue;
            }
            return Some(DatInfo {
                eax: res.eax,
                ebx: res.ebx,
                ecx: res.ecx,
                edx: res.edx,
            });
        }
    }
fn next ( & mut self ) -> Option < DatInfo > { loop { // Sub-leaf index n is invalid if n exceeds the value that sub-leaf 0 returns in EAX if self . current > self . count { return None ; } let res = cpuid ! ( EAX_DETERMINISTIC_ADDRESS_TRANSLATION_INFO self current ) ; self . current += 1 ; // A sub-leaf index is also invalid if EDX[4:0] returns 0. if get_bits ( res . edx , 0 , 4 ) == 0 { // Valid sub-leaves do not need to be contiguous or in any particular order. // A valid sub-leaf may be in a higher input ECX value than an invalid sub-leaf // or than a valid sub-leaf of a higher or lower-level struc-ture continue ; } return Some ( DatInfo { eax : res . eax , ebx : res . ebx , ecx : res . ecx , edx : res . edx , } ) ; } }
Iterate over each sub-leaf with an  address translation structure.
Iterate over each sub - leaf with an address translation structure .
&mut self