Enum miden_parsing::ParseResult
source · pub enum ParseResult<R, E> {
Fail(E),
Warn(E, R),
Ok(R),
}
Expand description
The result of parsing some source input
Variants§
Fail(E)
Hard error, cannot proceed
Warn(E, R)
Soft error, can proceed, but may fail at a later stage
Ok(R)
Success
Implementations§
Auto Trait Implementations§
impl<R, E> RefUnwindSafe for ParseResult<R, E>where E: RefUnwindSafe, R: RefUnwindSafe,
impl<R, E> Send for ParseResult<R, E>where E: Send, R: Send,
impl<R, E> Sync for ParseResult<R, E>where E: Sync, R: Sync,
impl<R, E> Unpin for ParseResult<R, E>where E: Unpin, R: Unpin,
impl<R, E> UnwindSafe for ParseResult<R, E>where E: UnwindSafe, R: UnwindSafe,
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