diff options
Diffstat (limited to 'vendor/colored/examples')
-rw-r--r--[-rwxr-xr-x] | vendor/colored/examples/control.rs | 1 | ||||
-rw-r--r-- | vendor/colored/examples/custom_colors.rs | 6 | ||||
-rw-r--r--[-rwxr-xr-x] | vendor/colored/examples/dynamic_colors.rs | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | vendor/colored/examples/most_simple.rs | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | vendor/colored/examples/nested_colors.rs | 0 |
5 files changed, 7 insertions, 0 deletions
diff --git a/vendor/colored/examples/control.rs b/vendor/colored/examples/control.rs index b50b42691..14a7b762c 100755..100644 --- a/vendor/colored/examples/control.rs +++ b/vendor/colored/examples/control.rs @@ -1,3 +1,4 @@ +#![allow(unused_must_use)] extern crate colored; use colored::*; diff --git a/vendor/colored/examples/custom_colors.rs b/vendor/colored/examples/custom_colors.rs new file mode 100644 index 000000000..05c588e60 --- /dev/null +++ b/vendor/colored/examples/custom_colors.rs @@ -0,0 +1,6 @@ +use colored::*; +fn main() { + let my_color = CustomColor::new(0, 120, 120); + println!("{}", "Greetings from Ukraine".custom_color(my_color)); + println!("{}", "Slava Ukraini!".on_custom_color(my_color)); +} diff --git a/vendor/colored/examples/dynamic_colors.rs b/vendor/colored/examples/dynamic_colors.rs index d9861f425..d9861f425 100755..100644 --- a/vendor/colored/examples/dynamic_colors.rs +++ b/vendor/colored/examples/dynamic_colors.rs diff --git a/vendor/colored/examples/most_simple.rs b/vendor/colored/examples/most_simple.rs index b94a2b36a..b94a2b36a 100755..100644 --- a/vendor/colored/examples/most_simple.rs +++ b/vendor/colored/examples/most_simple.rs diff --git a/vendor/colored/examples/nested_colors.rs b/vendor/colored/examples/nested_colors.rs index de1124916..de1124916 100755..100644 --- a/vendor/colored/examples/nested_colors.rs +++ b/vendor/colored/examples/nested_colors.rs |