#[non_exhaustive]pub struct LogPalette {
pub trace: Color32,
pub debug: Color32,
pub info: Color32,
pub warn: Color32,
pub error: Color32,
pub critical: Color32,
}Expand description
The log levels’ colours (palette.log.*), from the least to the most
severe: what a log view colours a line’s level with. Each reads as
text on the canvas and the panel.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.trace: Color32palette.log.trace.
debug: Color32palette.log.debug.
info: Color32palette.log.info.
warn: Color32palette.log.warn.
error: Color32palette.log.error.
critical: Color32palette.log.critical: past error.
Implementations§
Source§impl LogPalette
impl LogPalette
Sourcepub fn levels(&self) -> [Color32; 6]
pub fn levels(&self) -> [Color32; 6]
The colours in egui_pop_tokens::LOG_LEVELS’ order, from trace
to critical.
Trait Implementations§
Source§impl Clone for LogPalette
impl Clone for LogPalette
Source§fn clone(&self) -> LogPalette
fn clone(&self) -> LogPalette
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 LogPalette
impl Debug for LogPalette
Source§impl PartialEq for LogPalette
impl PartialEq for LogPalette
impl Copy for LogPalette
impl StructuralPartialEq for LogPalette
Auto Trait Implementations§
impl Freeze for LogPalette
impl RefUnwindSafe for LogPalette
impl Send for LogPalette
impl Sync for LogPalette
impl Unpin for LogPalette
impl UnsafeUnpin for LogPalette
impl UnwindSafe for LogPalette
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