pub fn count_partitions(&self) -> u8 {
        let mut ctr: u8 = 0;
        for part in self.partitions.iter() {
            if part.part_type() != MbrPartTypes::Empty {
                ctr += 1;
            }
        }
        ctr
    }
/// counts the number of non-empty partitions in the MBR
counts the number of non-empty partitions in the MBR
counts the number of non - empty partitions in the MBR
pub fn count_partitions(&self) -> u8 {
        let mut ctr: u8 = 0;
        for part in self.partitions.iter() {
            if part.part_type() != MbrPartTypes::Empty {
                ctr += 1;
            }
        }
        ctr
    }
pub fn count_partitions ( & self ) -> u8 { let mut ctr : u8 = 0 ; for part in self . partitions . iter ( ) { if part . part_type ( ) != MbrPartTypes :: Empty { ctr += 1 ; } } ctr }
counts the number of non-empty partitions in the MBR
counts the number of non - empty partitions in the MBR
&self
&self