pub enum SemanticError {
Show 21 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: Type,
found: Vec<Type>,
},
UnknownImplOnType,
UnknownTypeVariable,
}
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
Trait Implementations§
Source§impl Clone for SemanticError
impl Clone for SemanticError
Source§fn clone(&self) -> SemanticError
fn clone(&self) -> SemanticError
Returns a copy 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 moreAuto 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