Struct swc_common::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 normal<S: Into<String>>(t: S) -> DiagnosticStyledString
pub fn highlighted<S: Into<String>>(t: S) -> DiagnosticStyledString
pub fn content(&self) -> String
Trait Implementations
sourceimpl Default for DiagnosticStyledString
impl Default for DiagnosticStyledString
sourcefn default() -> DiagnosticStyledString
fn default() -> DiagnosticStyledString
Returns the “default value” for a type. Read more
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