pub trait SpacerProvider {
// Required method
fn spacers(&self, lines: Range<usize>, cx: &App) -> Vec<Spacer>;
}Expand description
Supplies the spacers of an editor.
Unlike line decorations, spacers move every row below them, so the editor
asks for those of every line at once and keeps the answer: when the provider
is set, after an edit, after the text is wrapped again or a fold changes,
and when InputBaseState::refresh_spacers is called. A spacer on a line
hidden by a fold, or past the last line, is not shown.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".