pub struct SqlHighlighter { /* private fields */ }Expand description
SQL syntax highlighter.
Tokenizes SQL queries and produces highlighted output using theme colors.
Implementations§
Source§impl SqlHighlighter
impl SqlHighlighter
Sourcepub fn with_theme(theme: Theme) -> Self
pub fn with_theme(theme: Theme) -> Self
Create a new SQL highlighter with a specific theme.
Sourcepub fn tokenize(&self, sql: &str) -> Vec<SqlSegment>
pub fn tokenize(&self, sql: &str) -> Vec<SqlSegment>
Tokenize SQL into segments.
Trait Implementations§
Source§impl Clone for SqlHighlighter
impl Clone for SqlHighlighter
Source§fn clone(&self) -> SqlHighlighter
fn clone(&self) -> SqlHighlighter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqlHighlighter
impl Debug for SqlHighlighter
Auto Trait Implementations§
impl Freeze for SqlHighlighter
impl RefUnwindSafe for SqlHighlighter
impl Send for SqlHighlighter
impl Sync for SqlHighlighter
impl Unpin for SqlHighlighter
impl UnsafeUnpin for SqlHighlighter
impl UnwindSafe for SqlHighlighter
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