Struct rustc_errors::DiagnosticStyledString
source · [−]pub struct DiagnosticStyledString(pub Vec<StringPart>);
Tuple Fields
0: Vec<StringPart>
Implementations
sourceimpl 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
sourceimpl Debug for DiagnosticStyledString
impl Debug for DiagnosticStyledString
sourceimpl PartialEq<DiagnosticStyledString> for DiagnosticStyledString
impl PartialEq<DiagnosticStyledString> for DiagnosticStyledString
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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