Struct rustc_errors::DiagnosticStyledString
[−]
[src]
pub struct DiagnosticStyledString(pub Vec<StringPart>);
Methods
impl DiagnosticStyledString
[src]
pub fn new() -> DiagnosticStyledString
[src]
pub fn push_normal<S: Into<String>>(&mut self, t: S)
[src]
pub fn push_highlighted<S: Into<String>>(&mut self, t: S)
[src]
pub fn normal<S: Into<String>>(t: S) -> DiagnosticStyledString
[src]
pub fn highlighted<S: Into<String>>(t: S) -> DiagnosticStyledString
[src]
pub fn content(&self) -> String
[src]
Trait Implementations
impl PartialEq for DiagnosticStyledString
[src]
fn eq(&self, __arg_0: &DiagnosticStyledString) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DiagnosticStyledString) -> bool
[src]
This method tests for !=
.