Clearly the tyre was unsafe, and a visual inspection would have showed it needed replacement. If you looked at that and thought it was okay, you need to reset and recalibrate your judgement.
Is the rim okay? Probably, because the tyre let-go first. However if it were me, I'd remove the wheel from bike then strip off the tyre, tube, and rim tape and look over the whole rim, and that area closely.
- Work under a strong light or outside in sunlight. Defects can be harder to see in shadows.
- Evaluate the rim all around. Compare flex on the blowout area with flex elsewhere on the rim.
- Be brutal - you need confidence in the rim, and being gentle here may pass something marginal.
- Wash the rim and re-inspect. Dirt hides things too, and a good scrub can reveal what's already hiding there.
- Check the rim for running true - a wheel that is hard to straighten may have damaged/stretched spokes/threads etc.
If you have doubts or any concern, write the rim off. That may mean rebuilding onto a different rim or replacing the whole wheel.
On the other hand, if you can't find cause for concern, then its okay to ride.
Personally I ride things that I would call marginal to let someone else ride - my tolerance for personal risk is higher than I'd push onto anyone else.
Related: I had the opposite happen - a rim-brake rim failed and tore off about a quarter of the circumference, but the tyre was perfectly okay. I'm still riding that tyre on a replacement wheel and tube.