pub fn sector_overlaps(&self, entity: DeviceEntity, sector: u64) -> bool {
        let devices = &self.components.devices.devices;
        let partitions = &self.components.devices.partitions;

        self.components.devices.children.get(entity).map_or(false, |children| {
            children.iter().any(|&child| {
                let device = &devices[child];
                let partition = &partitions[child];

                sector >= partition.offset && sector <= device.sectors
            })
        })
    }
/// Checks if the given sector is allocated in the partition table of the device.
///
/// # Notes
///
/// If the device does not support children, `false` is returned.
Checks if the given sector is allocated in the partition table of the device.
Checks if the given sector is allocated in the partition table of the device .
pub fn sector_overlaps(&self, entity: DeviceEntity, sector: u64) -> bool {
        let devices = &self.components.devices.devices;
        let partitions = &self.components.devices.partitions;
        self.components.devices.children.get(entity).map_or(false, |children| {
            children.iter().any(|&child| {
                let device = &devices[child];
                let partition = &partitions[child];
                sector >= partition.offset && sector <= device.sectors
            })
        })
    }
pub fn sector_overlaps ( & self , entity : DeviceEntity , sector : u64 ) -> bool { let devices = & self . components . devices . devices ; let partitions = & self . components . devices . partitions ; self . components . devices . children . get ( entity ) . map_or ( false , | children | { children . iter ( ) . any ( | & child | { let device = & devices [ child ] ; let partition = & partitions [ child ] ; sector >= partition . offset && sector <= device . sectors } ) } ) }
Checks if the given sector is allocated in the partition table of the device.
Checks if the given sector is allocated in the partition table of the device .
&self
entity
DeviceEntity
sector
u64
&self
entity
DeviceEntity
sector
u64
notes
If the device does not support children, `false` is returned.
If the device does not support children ` false ` is returned .