Struct rustc_errors::diagnostic::DiagnosticStyledString
source · pub struct DiagnosticStyledString(pub Vec<StringPart>);
Tuple Fields§
§0: Vec<StringPart>
Implementations§
source§impl DiagnosticStyledString
impl DiagnosticStyledString
pub fn new() -> DiagnosticStyledString
pub fn push_normal<S: Into<String>>(&mut self, t: S)
pub fn push_highlighted<S: Into<String>>(&mut self, t: S)
pub fn push<S: Into<String>>(&mut self, t: S, highlight: bool)
pub fn normal<S: Into<String>>(t: S) -> DiagnosticStyledString
pub fn highlighted<S: Into<String>>(t: S) -> DiagnosticStyledString
pub fn content(&self) -> String
Trait Implementations§
source§impl Debug for DiagnosticStyledString
impl Debug for DiagnosticStyledString
source§impl PartialEq<DiagnosticStyledString> for DiagnosticStyledString
impl PartialEq<DiagnosticStyledString> for DiagnosticStyledString
source§fn eq(&self, other: &DiagnosticStyledString) -> bool
fn eq(&self, other: &DiagnosticStyledString) -> bool
impl Eq for DiagnosticStyledString
impl StructuralEq for DiagnosticStyledString
impl StructuralPartialEq for DiagnosticStyledString
Auto Trait Implementations§
impl RefUnwindSafe for DiagnosticStyledString
impl Send for DiagnosticStyledString
impl Sync for DiagnosticStyledString
impl Unpin for DiagnosticStyledString
impl UnwindSafe for DiagnosticStyledString
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes