Enum donet_core::parser::error::SemanticError
source · pub enum SemanticError {
Show 20 variants
AlreadyDefined(String),
NotDefined(String),
MultipleInheritanceDisabled,
DClassOverflow,
FieldOverflow,
RedundantViewSuffix(String),
RedundantKeyword(String),
KeywordsInStructField,
RedundantCase,
RedundantDefault,
InvalidCaseValueType,
MismatchedKeywords {
atom1: String,
atom2: String,
},
ExpectedAtomic(String),
InvalidRange,
OverlappingRange,
ValueOutOfRange,
InvalidDivisor,
InvalidModulus,
InvalidDefault,
ExpectedStruct(String),
}
Expand description
Error type for the semantic analysis stage of the pipeline.
Variants§
AlreadyDefined(String)
NotDefined(String)
MultipleInheritanceDisabled
DClassOverflow
FieldOverflow
RedundantViewSuffix(String)
RedundantKeyword(String)
KeywordsInStructField
RedundantCase
RedundantDefault
InvalidCaseValueType
MismatchedKeywords
ExpectedAtomic(String)
InvalidRange
OverlappingRange
ValueOutOfRange
InvalidDivisor
InvalidModulus
InvalidDefault
ExpectedStruct(String)
Trait Implementations§
source§impl Debug for SemanticError
impl Debug for SemanticError
source§impl Display for SemanticError
impl Display for SemanticError
source§impl Error for SemanticError
impl Error for SemanticError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<SemanticError> for PipelineError
impl From<SemanticError> for PipelineError
source§fn from(source: SemanticError) -> Self
fn from(source: SemanticError) -> Self
Converts to this type from the input type.
source§impl ToErrorCode for SemanticError
impl ToErrorCode for SemanticError
fn error_code(&self) -> &str
Auto Trait Implementations§
impl Freeze for SemanticError
impl RefUnwindSafe for SemanticError
impl Send for SemanticError
impl Sync for SemanticError
impl Unpin for SemanticError
impl UnwindSafe for SemanticError
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