Trait CursorSource

Source
pub trait CursorSource {
    // Required method
    fn iter_cursors(&self) -> impl Iterator<Item = &Cursor>;
}
Expand description

This trait provides the generic impl that ToCursors can use. This provides just enough API surface for nodes to put the cursors they represent into some buffer which can later be read, the details of which are elided.

Required Methods§

Source

fn iter_cursors(&self) -> impl Iterator<Item = &Cursor>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§