pub enum Status<T, E> {
Success(T),
Failure(E),
}
Expand description
An analog to Result
, specialized for parsing.
Variants§
Trait Implementations§
impl<T, E> StructuralPartialEq for Status<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for Status<T, E>
impl<T, E> RefUnwindSafe for Status<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for Status<T, E>
impl<T, E> Sync for Status<T, E>
impl<T, E> Unpin for Status<T, E>
impl<T, E> UnwindSafe for Status<T, E>where
T: UnwindSafe,
E: 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