pub trait DiagnosticColor {
// Provided methods
fn line_num(&self, s: impl Into<String>) -> String { ... }
fn line(&self, s: impl Into<String>) -> String { ... }
fn location(&self, s: impl Into<String>) -> String { ... }
fn message(&self, s: impl Into<String>) -> String { ... }
}Provided Methods§
fn line_num(&self, s: impl Into<String>) -> String
fn line(&self, s: impl Into<String>) -> String
fn location(&self, s: impl Into<String>) -> String
fn message(&self, s: impl Into<String>) -> String
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.