Struct reedline::ExampleHighlighter
source · pub struct ExampleHighlighter { /* private fields */ }
Expand description
A simple, example highlighter that shows how to highlight keywords
Implementations§
source§impl ExampleHighlighter
impl ExampleHighlighter
sourcepub fn new(external_commands: Vec<String>) -> ExampleHighlighter
pub fn new(external_commands: Vec<String>) -> ExampleHighlighter
Construct the default highlighter with a given set of extern commands/keywords to detect and highlight
sourcepub fn change_colors(
&mut self,
match_color: Color,
notmatch_color: Color,
neutral_color: Color
)
pub fn change_colors( &mut self, match_color: Color, notmatch_color: Color, neutral_color: Color )
Configure the highlighter to use different colors
Trait Implementations§
source§impl Default for ExampleHighlighter
impl Default for ExampleHighlighter
source§impl Highlighter for ExampleHighlighter
impl Highlighter for ExampleHighlighter
Auto Trait Implementations§
impl Freeze for ExampleHighlighter
impl RefUnwindSafe for ExampleHighlighter
impl Send for ExampleHighlighter
impl Sync for ExampleHighlighter
impl Unpin for ExampleHighlighter
impl UnwindSafe for ExampleHighlighter
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