[−][src]Enum rustc_errors::diagnostic::StringPart

pub enum StringPart {
    Normal(String),
    Highlighted(String),
}

Variants

Normal(String)
Highlighted(String)

Implementations

impl StringPart[src]

pub fn content(&self) -> &str[src]

Trait Implementations

impl Debug for StringPart[src]

impl Eq for StringPart[src]

impl PartialEq<StringPart> for StringPart[src]

impl StructuralEq for StringPart[src]

impl StructuralPartialEq for StringPart[src]

Auto Trait Implementations

impl RefUnwindSafe for StringPart

impl Send for StringPart

impl Sync for StringPart

impl Unpin for StringPart

impl UnwindSafe for StringPart

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.