/// For PVs which may be associated with a VG.
For PVs which may be associated with a VG.
For PVs which may be associated with a VG .
pub fn pv<'b>(&'b self, entity: DeviceEntity) -> Option<(&'b LvmPv, Option<&'b LvmVg>)> {
        self.components.devices.pvs.get(entity).map(|(pv, vg_entity)| {
            let vg = vg_entity.map(|ent| &self.components.vgs.volume_groups[ent]);
            (pv, vg)
        })
    }
pub fn pv < ' b > ( & ' b self , entity : DeviceEntity ) -> Option < ( & ' b LvmPv , Option < & ' b LvmVg > ) > { self . components . devices . pvs . get ( entity ) . map ( | ( pv , vg_entity ) | { let vg = vg_entity . map ( | ent | & self . components . vgs . volume_groups [ ent ] ) ; ( pv , vg ) } ) }
For PVs which may be associated with a VG.
For PVs which may be associated with a VG .
&'b self
entity
DeviceEntity