use crate::styled_buffer::StyledBuffer;
pub struct Span {
pub start: usize,
pub end: usize,
}
impl Span {
pub fn new(start: usize, end: usize) -> Self {
Span { start, end }
}
}
pub struct Suggestion {
pub content: StyledBuffer,
pub span: Span,
}
pub trait Completer {
fn complete(&self, input: &StyledBuffer) -> Vec<Suggestion>;
}