Home
last modified time | relevance | path

Searched refs:Rgb (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/arbitrary/
DREADME.md28 Say you're writing a color conversion library, and you have an `Rgb` struct to
29 represent RGB colors. You might want to implement `Arbitrary` for `Rgb` so that
30 you could take arbitrary `Rgb` instances in a test function that asserts some
57 pub struct Rgb {
74 pub struct Rgb {
80 impl<'a> Arbitrary<'a> for Rgb {
85 Ok(Rgb { r, g, b })
/external/rust/crates/criterion/src/plot/gnuplot_backend/
Dsummary.rs16 Color::Rgb(178, 34, 34),
17 Color::Rgb(46, 139, 87),
18 Color::Rgb(0, 139, 139),
19 Color::Rgb(255, 215, 0),
20 Color::Rgb(0, 0, 139),
21 Color::Rgb(220, 20, 60),
22 Color::Rgb(139, 0, 139),
23 Color::Rgb(0, 255, 127),
Dmod.rs39 const DARK_BLUE: Color = Color::Rgb(31, 120, 180);
40 const DARK_ORANGE: Color = Color::Rgb(255, 127, 0);
41 const DARK_RED: Color = Color::Rgb(227, 26, 28);
/external/rust/crates/arbitrary/tests/
Dderive.rs11 pub struct Rgb { struct
19 let rgb: Rgb = arbitrary_from(&[4, 5, 6]); in struct_with_named_fields() argument
24 assert_eq!((3, Some(3)), <Rgb as Arbitrary>::size_hint(0)); in struct_with_named_fields()
/external/rust/crates/env_logger/src/fmt/writer/termcolor/
Dextern_impl.rs466 Rgb(u8, u8, u8), enumerator
481 Color::Rgb(r, g, b) => Some(termcolor::Color::Rgb(r, g, b)), in into_termcolor()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowColorSpace.java17 @Implements(value = ColorSpace.Rgb.class, minSdk = O)
/external/rust/crates/termcolor/src/
Dlib.rs1432 Color::Rgb(r, g, b) => write_custom!(r, g, b), in write_color()
1446 Color::Rgb(r, g, b) => write_custom!(r, g, b), in write_color()
1802 Rgb(u8, u8, u8), enumerator
1842 Color::Rgb(_, _, _) => return None, in to_windows()
1893 Ok(Color::Rgb(v[0], v[1], v[2])) in from_str_numeric()
2116 assert_eq!(color, Ok(Color::Rgb(0, 0, 0))); in test_rgb_parse_ok()
2119 assert_eq!(color, Ok(Color::Rgb(0, 128, 255))); in test_rgb_parse_ok()
2122 assert_eq!(color, Ok(Color::Rgb(0, 0, 0))); in test_rgb_parse_ok()
2125 assert_eq!(color, Ok(Color::Rgb(0x33, 0x66, 0xFF))); in test_rgb_parse_ok()
2164 let _ = buf.write_color(true, &Color::Rgb(254, 253, 255), false); in test_var_ansi_write_rgb()
/external/rust/crates/libfuzzer-sys/ci/
Dscript.sh40 grep -q Rgb $(pwd)/debug_output
/external/rust/crates/criterion-plot/src/
Ddisplay.rs41 Color::Rgb(r, g, b) => Cow::from(format!("#{:02x}{:02x}{:02x}", r, g, b)), in display()
Dlib.rs800 Rgb(u8, u8, u8), enumerator
/external/webp/src/dsp/
Dupsampling_neon.c249 NEON_UPSAMPLE_FUNC(UpsampleRgbLinePair_NEON, Rgb, 3)
/external/rust/crates/libc/src/
Dpsp.rs865 Rgb = 0,