css_parse/traits/cursor_source.rs
1use crate::Cursor;
2
3/// This trait provides the generic `impl` that [ToCursors][crate::ToCursors] can use. This provides just enough API
4/// surface for nodes to put the cursors they represent into some buffer which can later be read, the details of which
5/// are elided.
6pub trait CursorSource {
7 fn iter_cursors(&self) -> impl Iterator<Item = &Cursor>;
8}