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