pub enum Error<'a> {
ModuleNameUnspecified(&'a str),
ModuleNameMismatch {
expected: &'a str,
actual: &'a str,
row: Row,
col: Col,
},
UnexpectedPort {
row: Row,
col: Col,
},
NoPorts {
row: Row,
col: Col,
},
NoPortsInPackage {
name: &'a str,
row: Row,
col: Col,
},
NoPortModulesInPackage {
row: Row,
col: Col,
},
NoEffectsOutsideKernel {
row: Row,
col: Col,
},
ParseError(&'a Module<'a>),
}Variants§
ModuleNameUnspecified(&'a str)
ModuleNameMismatch
UnexpectedPort
NoPorts
NoPortsInPackage
NoPortModulesInPackage
NoEffectsOutsideKernel
ParseError(&'a Module<'a>)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Error<'a>
impl<'a> RefUnwindSafe for Error<'a>
impl<'a> Send for Error<'a>
impl<'a> Sync for Error<'a>
impl<'a> Unpin for Error<'a>
impl<'a> UnsafeUnpin for Error<'a>
impl<'a> UnwindSafe for Error<'a>
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