pub struct AnsiColorScheme {
pub default: &'static str,
pub location: &'static str,
pub fn_keyword: &'static str,
pub func_name: &'static str,
pub func_braces: &'static str,
pub value_braces: &'static str,
pub ident: &'static str,
pub item: &'static str,
pub boolean: &'static str,
pub number: &'static str,
pub quoted: &'static str,
pub escaped: &'static str,
}Expand description
A structure representing an ANSI color scheme used by DebugAnsiColored
formatter.
§Examples
unwind_context::set_default_color_scheme(&unwind_context::AnsiColorScheme {
default: "\u{1b}[0m",
location: "\u{1b}[31m",
fn_keyword: "\u{1b}[32m",
func_name: "\u{1b}[33m",
func_braces: "\u{1b}[34m",
value_braces: "\u{1b}[35m",
ident: "\u{1b}[36m",
item: "\u{1b}[37m",
boolean: "\u{1b}[91m",
number: "\u{1b}[92m",
quoted: "\u{1b}[93m",
escaped: "\u{1b}[94m",
});Fields§
§default: &'static strThe ANSI escape sequence used for default text styling.
location: &'static strThe ANSI escape sequence used before code location.
fn_keyword: &'static strThe ANSI escape sequence used before fn keyword.
func_name: &'static strThe ANSI escape sequence used before function name.
func_braces: &'static strThe ANSI escape sequence used before function braces.
value_braces: &'static strThe ANSI escape sequence used before any value braces.
ident: &'static strThe ANSI escape sequence used before identifiers.
item: &'static strThe ANSI escape sequence used before struct, enum and const names.
boolean: &'static strThe ANSI escape sequence used before false or true keywords.
number: &'static strThe ANSI escape sequence used before numbers.
quoted: &'static strThe ANSI escape sequence used before quoted strings.
escaped: &'static strThe ANSI escape sequence used before escaped characters in quoted strings.
Trait Implementations§
Source§impl Clone for AnsiColorScheme
impl Clone for AnsiColorScheme
Source§fn clone(&self) -> AnsiColorScheme
fn clone(&self) -> AnsiColorScheme
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 AnsiColorScheme
impl Debug for AnsiColorScheme
Source§impl Hash for AnsiColorScheme
impl Hash for AnsiColorScheme
Source§impl Ord for AnsiColorScheme
impl Ord for AnsiColorScheme
Source§fn cmp(&self, other: &AnsiColorScheme) -> Ordering
fn cmp(&self, other: &AnsiColorScheme) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AnsiColorScheme
impl PartialEq for AnsiColorScheme
Source§impl PartialOrd for AnsiColorScheme
impl PartialOrd for AnsiColorScheme
impl Copy for AnsiColorScheme
impl Eq for AnsiColorScheme
impl StructuralPartialEq for AnsiColorScheme
Auto Trait Implementations§
impl Freeze for AnsiColorScheme
impl RefUnwindSafe for AnsiColorScheme
impl Send for AnsiColorScheme
impl Sync for AnsiColorScheme
impl Unpin for AnsiColorScheme
impl UnwindSafe for AnsiColorScheme
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