DocumentPhantom

Trait DocumentPhantom 

Source
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§

Source

fn phantom_text( &self, edid: EditorId, styling: &EditorStyle, line: usize, ) -> PhantomTextLine

Provided Methods§

Source

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.

Source

fn has_multiline_phantom(&self, _edid: EditorId, _styling: &EditorStyle) -> bool

Implementors§