diff options
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -272,6 +272,7 @@ pub trait YaxColors { fn comparison_op<T: Display>(&self, t: T) -> Colored<T>; fn invalid_op<T: Display>(&self, t: T) -> Colored<T>; fn platform_op<T: Display>(&self, t: T) -> Colored<T>; + fn misc_op<T: Display>(&self, t: T) -> Colored<T>; fn register<T: Display>(&self, t: T) -> Colored<T>; fn program_counter<T: Display>(&self, t: T) -> Colored<T>; @@ -309,6 +310,9 @@ impl YaxColors for ColorSettings { fn invalid_op<T: Display>(&self, t: T) -> Colored<T> { Colored::Color(t, self.invalid) } + fn misc_op<T: Display>(&self, t: T) -> Colored<T> { + Colored::Color(t, self.misc) + } fn platform_op<T: Display>(&self, t: T) -> Colored<T> { Colored::Color(t, self.platform) } @@ -391,6 +395,12 @@ impl <'a> YaxColors for Option<&'a ColorSettings> { None => { Colored::Just(t) } } } + fn misc_op<T: Display>(&self, t: T) -> Colored<T> { + match self { + Some(colors) => { colors.misc_op(t) } + None => { Colored::Just(t) } + } + } fn platform_op<T: Display>(&self, t: T) -> Colored<T> { match self { Some(colors) => { colors.platform_op(t) } |