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