pub struct ModuleCompileDiagnostic {
pub stage: ModuleCompileStage,
pub message: String,
pub offset: Option<usize>,
pub span: Option<Span>,
pub line: Option<usize>,
pub column: Option<usize>,
pub diagnostic: Option<String>,
}Fields§
§stage: ModuleCompileStage§message: String§offset: Option<usize>§span: Option<Span>§line: Option<usize>§column: Option<usize>§diagnostic: Option<String>Trait Implementations§
Source§impl Clone for ModuleCompileDiagnostic
impl Clone for ModuleCompileDiagnostic
Source§fn clone(&self) -> ModuleCompileDiagnostic
fn clone(&self) -> ModuleCompileDiagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleCompileDiagnostic
impl Debug for ModuleCompileDiagnostic
Source§impl<'de> Deserialize<'de> for ModuleCompileDiagnostic
impl<'de> Deserialize<'de> for ModuleCompileDiagnostic
Source§fn 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
Source§impl Display for ModuleCompileDiagnostic
impl Display for ModuleCompileDiagnostic
impl Eq for ModuleCompileDiagnostic
Source§impl PartialEq for ModuleCompileDiagnostic
impl PartialEq for ModuleCompileDiagnostic
Source§fn eq(&self, other: &ModuleCompileDiagnostic) -> bool
fn eq(&self, other: &ModuleCompileDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModuleCompileDiagnostic
impl Serialize for ModuleCompileDiagnostic
impl StructuralPartialEq for ModuleCompileDiagnostic
Auto Trait Implementations§
impl Freeze for ModuleCompileDiagnostic
impl RefUnwindSafe for ModuleCompileDiagnostic
impl Send for ModuleCompileDiagnostic
impl Sync for ModuleCompileDiagnostic
impl Unpin for ModuleCompileDiagnostic
impl UnsafeUnpin for ModuleCompileDiagnostic
impl UnwindSafe for ModuleCompileDiagnostic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more