pub struct PlainText;
Expand description
A highlighter that highlights nothing.
Trait Implementations§
Source§impl Highlighter for PlainText
impl Highlighter for PlainText
Source§type Settings = ()
type Settings = ()
The settings to configure the
Highlighter
.Source§type Highlight = ()
type Highlight = ()
The output of the
Highlighter
.Source§type Iterator<'a> = Empty<(Range<usize>, <PlainText as Highlighter>::Highlight)>
type Iterator<'a> = Empty<(Range<usize>, <PlainText as Highlighter>::Highlight)>
The highlight iterator type.
Source§fn new(_settings: &Self::Settings) -> Self
fn new(_settings: &Self::Settings) -> Self
Creates a new
Highlighter
from its Self::Settings
.Source§fn update(&mut self, _new_settings: &Self::Settings)
fn update(&mut self, _new_settings: &Self::Settings)
Updates the
Highlighter
with some new Self::Settings
.Source§fn change_line(&mut self, _line: usize)
fn change_line(&mut self, _line: usize)
Notifies the
Highlighter
that the line at the given index has changed.Source§fn highlight_line(&mut self, _line: &str) -> Self::Iterator<'_>
fn highlight_line(&mut self, _line: &str) -> Self::Iterator<'_>
Highlights the given line. Read more
Source§fn current_line(&self) -> usize
fn current_line(&self) -> usize
Returns the current line of the
Highlighter
. Read moreimpl Copy for PlainText
Auto Trait Implementations§
impl Freeze for PlainText
impl RefUnwindSafe for PlainText
impl Send for PlainText
impl Sync for PlainText
impl Unpin for PlainText
impl UnwindSafe for PlainText
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more