pub fn parents(&self) -> impl Iterator<Item = DeviceEntity<'_>> {
        self.ctx
            .components
            .parents
            .get(self.id)
            .into_iter()
            .flat_map(|entities| entities.iter())
            .map(move |&id| DeviceEntity { id, ctx: self.ctx })
    }
// Return the parent of this device, if this device has one.
Return the parent of this device, if this device has one.
Return the parent of this device if this device has one .
pub fn parents(&self) -> impl Iterator<Item = DeviceEntity<'_>> {
        self.ctx
            .components
            .parents
            .get(self.id)
            .into_iter()
            .flat_map(|entities| entities.iter())
            .map(move |&id| DeviceEntity { id, ctx: self.ctx })
    }
pub fn parents ( & self ) -> impl Iterator < Item = DeviceEntity < ' _ > > { self . ctx . components . parents . get ( self . id ) . into_iter ( ) . flat_map ( | entities | entities . iter ( ) ) . map ( move | & id | DeviceEntity { id , ctx : self . ctx } ) }
Return the parent of this device, if this device has one.
Return the parent of this device if this device has one .
&self
&self