pub struct Recovered<T, D> {
pub value: T,
pub diagnostics: Vec<D>,
}Expand description
A successfully produced value accompanied by non-fatal diagnostics.
Recovery is explicit rather than hidden in ordinary Result values: strict
entry points may reject the same source, while real-time callers can retain
the usable syntax in Self::value and present Self::diagnostics.
Fields§
§value: TThe value retained from the incomplete input.
diagnostics: Vec<D>Non-fatal problems encountered while producing the value.
Implementations§
Trait Implementations§
impl<T: Eq, D: Eq> Eq for Recovered<T, D>
impl<T: PartialEq, D: PartialEq> StructuralPartialEq for Recovered<T, D>
Auto Trait Implementations§
impl<T, D> Freeze for Recovered<T, D>
impl<T, D> RefUnwindSafe for Recovered<T, D>
impl<T, D> Send for Recovered<T, D>
impl<T, D> Sync for Recovered<T, D>
impl<T, D> Unpin for Recovered<T, D>
impl<T, D> UnsafeUnpin for Recovered<T, D>
impl<T, D> UnwindSafe for Recovered<T, D>
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