Home
last modified time | relevance | path

Searched refs:ColorChoice (Results 1 – 8 of 8) sorted by relevance

/external/rust/crates/codespan-reporting/src/
Dterm.rs4 use termcolor::{ColorChoice, WriteColor};
48 pub struct ColorArg(pub ColorChoice);
66 _ if src.eq_ignore_ascii_case("auto") => Ok(ColorArg(ColorChoice::Auto)), in from_str()
67 _ if src.eq_ignore_ascii_case("always") => Ok(ColorArg(ColorChoice::Always)), in from_str()
68 _ if src.eq_ignore_ascii_case("ansi") => Ok(ColorArg(ColorChoice::AlwaysAnsi)), in from_str()
69 _ if src.eq_ignore_ascii_case("never") => Ok(ColorArg(ColorChoice::Never)), in from_str()
75 impl Into<ColorChoice> for ColorArg {
76 fn into(self) -> ColorChoice { in into() argument
/external/rust/crates/termcolor/
DREADME.md55 use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
58 let mut stdout = StandardStream::stdout(ColorChoice::Always);
74 use termcolor::{BufferWriter, Color, ColorChoice, ColorSpec, WriteColor};
77 let mut bufwtr = BufferWriter::stderr(ColorChoice::Always);
88 [`ColorChoice`](https://docs.rs/termcolor/1.0.5/termcolor/enum.ColorChoice.html)
/external/rust/crates/env_logger/src/fmt/writer/termcolor/
Dextern_impl.rs8 use termcolor::{self, ColorChoice, ColorSpec, WriteColor};
159 fn into_color_choice(self) -> ColorChoice { in into_color_choice() argument
161 WriteStyle::Always => ColorChoice::Always, in into_color_choice()
162 WriteStyle::Auto => ColorChoice::Auto, in into_color_choice()
163 WriteStyle::Never => ColorChoice::Never, in into_color_choice()
/external/rust/crates/termcolor/src/
Dlib.rs207 pub enum ColorChoice { enum
222 impl ColorChoice { implementation
226 ColorChoice::Always => true, in should_attempt_color()
227 ColorChoice::AlwaysAnsi => true, in should_attempt_color()
228 ColorChoice::Never => false, in should_attempt_color()
229 ColorChoice::Auto => self.env_allows_color(), in should_attempt_color()
278 ColorChoice::Always => false, in should_ansi()
279 ColorChoice::AlwaysAnsi => true, in should_ansi()
280 ColorChoice::Never => false, in should_ansi()
281 ColorChoice::Auto => { in should_ansi()
[all …]
/external/rust/crates/syn/tests/
Dzzz_stable.rs4 use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
23 let mut stderr = StandardStream::stderr(ColorChoice::Auto); in notice()
/external/rust/crates/codespan-reporting/examples/
Dpeg_calculator.rs13 use codespan_reporting::term::termcolor::{ColorChoice, StandardStream};
40 let writer = StandardStream::stderr(ColorChoice::Always); in main()
Dcustom_files.rs14 use codespan_reporting::term::termcolor::{ColorChoice, StandardStream};
32 let writer = StandardStream::stderr(ColorChoice::Always); in main()
/external/rust/cxx/gen/src/
Derror.rs5 use codespan_reporting::term::termcolor::{ColorChoice, StandardStream, WriteColor};
64 let writer = StandardStream::stderr(ColorChoice::Auto); in format_err()