Enum ezno_lib::Diagnostic
source · pub enum Diagnostic {
Global {
reason: String,
kind: DiagnosticKind,
},
Position {
reason: String,
position: BaseSpan<SourceId>,
kind: DiagnosticKind,
},
PositionWithAdditionLabels {
reason: String,
position: BaseSpan<SourceId>,
labels: Vec<(String, Option<BaseSpan<SourceId>>), Global>,
kind: DiagnosticKind,
},
}Expand description
Contains information
Variants§
Implementations§
Trait Implementations§
source§impl Debug for Diagnostic
impl Debug for Diagnostic
source§impl From<(ParseError, SourceId)> for Diagnostic
impl From<(ParseError, SourceId)> for Diagnostic
source§fn from(parse_error: (ParseError, SourceId)) -> Diagnostic
fn from(parse_error: (ParseError, SourceId)) -> Diagnostic
Converts to this type from the input type.
source§impl From<ModuleFromPathError> for Diagnostic
impl From<ModuleFromPathError> for Diagnostic
source§fn from(err: ModuleFromPathError) -> Diagnostic
fn from(err: ModuleFromPathError) -> Diagnostic
Converts to this type from the input type.
source§impl From<NoEnvironmentSpecified> for Diagnostic
impl From<NoEnvironmentSpecified> for Diagnostic
source§fn from(error: NoEnvironmentSpecified) -> Diagnostic
fn from(error: NoEnvironmentSpecified) -> Diagnostic
Converts to this type from the input type.
source§impl From<TypeCheckError<'_>> for Diagnostic
impl From<TypeCheckError<'_>> for Diagnostic
source§fn from(error: TypeCheckError<'_>) -> Diagnostic
fn from(error: TypeCheckError<'_>) -> Diagnostic
Converts to this type from the input type.
source§impl Serialize for Diagnostic
impl Serialize for Diagnostic
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
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