Struct escargot::format::diagnostic::DiagnosticCode
source · pub struct DiagnosticCode<'a> {
pub code: Cow<'a, str>,
pub explanation: Option<Cow<'a, str>>,
/* private fields */
}
Expand description
The error code associated to this diagnostic.
Fields
code: Cow<'a, str>
The code itself.
explanation: Option<Cow<'a, str>>
An explanation for the code
Trait Implementations
sourceimpl<'a> Clone for DiagnosticCode<'a>
impl<'a> Clone for DiagnosticCode<'a>
sourcefn clone(&self) -> DiagnosticCode<'a>
fn clone(&self) -> DiagnosticCode<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for DiagnosticCode<'a>
impl<'a> Debug for DiagnosticCode<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for DiagnosticCode<'a>
impl<'de: 'a, 'a> Deserialize<'de> for DiagnosticCode<'a>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> Serialize for DiagnosticCode<'a>
impl<'a> Serialize for DiagnosticCode<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for DiagnosticCode<'a>
impl<'a> Send for DiagnosticCode<'a>
impl<'a> Sync for DiagnosticCode<'a>
impl<'a> Unpin for DiagnosticCode<'a>
impl<'a> UnwindSafe for DiagnosticCode<'a>
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