New in version 2.0.
Iterate rests forward in expr:
abjad> staff = Staff("<e' g' c''>8 a'8 r8 <d' f' b'>8 r2")
abjad> f(staff)
\new Staff {
<e' g' c''>8
a'8
r8
<d' f' b'>8
r2
}
abjad> for rest in resttools.iterate_rests_forward_in_expr(staff):
... rest
Rest('r8')
Rest('r2')
Ignore threads.
Return generator.