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 normal<S: Into<String>>(t: S) -> DiagnosticStyledString
pub fn highlighted<S: Into<String>>(t: S) -> DiagnosticStyledString
pub fn content(&self) -> String
Trait Implementations§
impl Eq for DiagnosticStyledString
Source§impl PartialEq for DiagnosticStyledString
impl PartialEq for DiagnosticStyledString
Source§fn eq(&self, other: &DiagnosticStyledString) -> bool
fn eq(&self, other: &DiagnosticStyledString) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiagnosticStyledString
Auto Trait Implementations§
impl Freeze for DiagnosticStyledString
impl RefUnwindSafe for DiagnosticStyledString
impl Send for DiagnosticStyledString
impl Sync for DiagnosticStyledString
impl Unpin for DiagnosticStyledString
impl UnsafeUnpin 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