Struct rustc_errors::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
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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