pub enum SemanticError {
Show 22 variants
CouldNotInsertStruct,
DuplicateTypeAlias(String),
CanOnlyUseStructForMemberFunctions,
ResolveNotStruct,
DuplicateStructName(String),
DuplicateEnumType(String),
DuplicateEnumVariantType(String, String),
DuplicateFieldName(String),
DuplicateExternalFunction(String),
DuplicateRustType(String),
DuplicateConstName(String),
CircularConstantDependency(Vec<ConstantId>),
DuplicateConstantId(ConstantId),
IncompatibleTypes,
WasNotImmutable,
WasNotMutable,
DuplicateSymbolName(String),
DuplicateNamespaceLink(String),
MismatchedTypes {
expected: TypeRef,
found: Vec<TypeRef>,
},
UnknownImplOnType,
UnknownTypeVariable,
DuplicateDefinition(String),
}
Variants§
CouldNotInsertStruct
DuplicateTypeAlias(String)
CanOnlyUseStructForMemberFunctions
ResolveNotStruct
DuplicateStructName(String)
DuplicateEnumType(String)
DuplicateEnumVariantType(String, String)
DuplicateFieldName(String)
DuplicateExternalFunction(String)
DuplicateRustType(String)
DuplicateConstName(String)
CircularConstantDependency(Vec<ConstantId>)
DuplicateConstantId(ConstantId)
IncompatibleTypes
WasNotImmutable
WasNotMutable
DuplicateSymbolName(String)
DuplicateNamespaceLink(String)
MismatchedTypes
UnknownImplOnType
UnknownTypeVariable
DuplicateDefinition(String)
Trait Implementations§
Source§impl Clone for SemanticError
impl Clone for SemanticError
Source§fn clone(&self) -> SemanticError
fn clone(&self) -> SemanticError
Returns a duplicate of the value. Read more
1.0.0 · 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 SemanticError
impl Debug for SemanticError
Source§impl From<SemanticError> for Error
impl From<SemanticError> for Error
Source§fn from(value: SemanticError) -> Self
fn from(value: SemanticError) -> Self
Converts to this type from the input type.
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