pub struct LogViewerStyle {
pub border_style: Style,
pub line_number_style: Style,
pub content_style: Style,
pub current_match_style: Style,
pub match_style: Style,
pub level_colors: LogLevelColors,
pub show_line_numbers: bool,
pub line_number_width: usize,
}Expand description
Style configuration for log viewer
Fields§
§border_style: StyleBorder style
line_number_style: StyleLine number style
content_style: StyleDefault content style
current_match_style: StyleCurrent search match highlight
match_style: StyleOther search match highlight
level_colors: LogLevelColorsLog level colors
show_line_numbers: boolWhether to show line numbers
line_number_width: usizeLine number width
Implementations§
Source§impl LogViewerStyle
impl LogViewerStyle
Sourcepub fn style_for_line(&self, line: &str) -> Style
pub fn style_for_line(&self, line: &str) -> Style
Get style for a line based on its content
Trait Implementations§
Source§impl Clone for LogViewerStyle
impl Clone for LogViewerStyle
Source§fn clone(&self) -> LogViewerStyle
fn clone(&self) -> LogViewerStyle
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 LogViewerStyle
impl Debug for LogViewerStyle
Auto Trait Implementations§
impl Freeze for LogViewerStyle
impl RefUnwindSafe for LogViewerStyle
impl Send for LogViewerStyle
impl Sync for LogViewerStyle
impl Unpin for LogViewerStyle
impl UnwindSafe for LogViewerStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more