pub trait DocumentPhantom {
// Required method
fn phantom_text(
&self,
edid: Id,
styling: &EditorStyle,
line: usize,
) -> PhantomTextLine;
// Provided methods
fn before_phantom_col(
&self,
edid: Id,
styling: &EditorStyle,
line: usize,
col: usize,
) -> usize { ... }
fn has_multiline_phantom(&self, _edid: Id, _styling: &EditorStyle) -> bool { ... }
}Required Methods§
fn phantom_text( &self, edid: Id, styling: &EditorStyle, line: usize, ) -> PhantomTextLine
Provided Methods§
Sourcefn before_phantom_col(
&self,
edid: Id,
styling: &EditorStyle,
line: usize,
col: usize,
) -> usize
fn before_phantom_col( &self, edid: Id, styling: &EditorStyle, line: usize, col: usize, ) -> usize
Translate a column position into the position it would be before combining with the phantom text.