pub struct GLoggerOptions {
pub colors: [Ansi8; 5],
}
Expand description
Ways to configure the logger. These include: colors. 0.2.0 will expand these, if it ever gets made.
§Examples
use glug::Ansi8;
let options = glug::GLoggerOptions {colors: [Ansi8::Red,Ansi8::Blue,Ansi8::Green,Ansi8::Yellow,Ansi8::Yellow], ..Default::default()};
use glug::Ansi8;
let options = glug::GLoggerOptions {colors: [Ansi8::Red,Ansi8::Blue,Ansi8::Green,Ansi8::Yellow,Ansi8::Yellow]};
Fields§
§colors: [Ansi8; 5]
Trait Implementations§
Source§impl Clone for GLoggerOptions
impl Clone for GLoggerOptions
Source§fn clone(&self) -> GLoggerOptions
fn clone(&self) -> GLoggerOptions
Returns a copy 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 Default for GLoggerOptions
impl Default for GLoggerOptions
impl Copy for GLoggerOptions
Auto Trait Implementations§
impl Freeze for GLoggerOptions
impl RefUnwindSafe for GLoggerOptions
impl Send for GLoggerOptions
impl Sync for GLoggerOptions
impl Unpin for GLoggerOptions
impl UnwindSafe for GLoggerOptions
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