internal/core/adt: add the Vertex.LeafConjuncts iterator
Which is the iter.Seq form of Vertex.VisitLeafConjuncts.
We leave the latter for now, to allow us to transition bit by bit
without a huge refactor that is hard to review.
For now, we switch the cue and tools/trim packages.
Updates #2953.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I5c60997ac5b981e2a3f01dd720440c73a218e0d0
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1224198
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>