pub enum AnalyserError {
TypeError {
location: Location,
message: String,
},
SemanticError {
location: Location,
message: String,
},
}Variants§
Implementations§
Source§impl AnalyserError
impl AnalyserError
pub fn type_error(location: Location, message: impl Into<String>) -> Self
pub fn semantic_error(location: Location, message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for AnalyserError
impl Clone for AnalyserError
Source§fn clone(&self) -> AnalyserError
fn clone(&self) -> AnalyserError
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 moreAuto Trait Implementations§
impl !Send for AnalyserError
impl !Sync for AnalyserError
impl Freeze for AnalyserError
impl RefUnwindSafe for AnalyserError
impl Unpin for AnalyserError
impl UnsafeUnpin for AnalyserError
impl UnwindSafe for AnalyserError
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