/// Finds the partition where the given sector resides.
Finds the partition where the given sector resides.
Finds the partition where the given sector resides .
pub fn find_at_sector(&self, sector: u64) -> Option<u32> {
        fn between(partition: &GPTPartitionEntry, sector: u64) -> bool {
            sector >= partition.starting_lba && sector <= partition.ending_lba
        }
        self.iter()
            .find(|(_, partition)| partition.is_used() && between(partition, sector))
            .map(|(id, _)| id)
    }
pub fn find_at_sector ( & self , sector : u64 ) -> Option < u32 > { fn between ( partition : & GPTPartitionEntry , sector : u64 ) -> bool { sector >= partition . starting_lba && sector <= partition . ending_lba } self . iter ( ) . find ( | ( _ , partition ) | partition . is_used ( ) && between ( partition , sector ) ) . map ( | ( id , _ ) | id ) }
Finds the partition where the given sector resides.
Finds the partition where the given sector resides .
&self
sector
u64