pub trait WithElement<T, W: Warning> {
// Required method
fn with_element(self, element: &Element<'_>) -> Verdict<T, W>;
}Expand description
Associate a json::Element with a set of Warnings contained by a [VerdictDeferred].
Required Methods§
fn with_element(self, element: &Element<'_>) -> Verdict<T, W>
Implementations on Foreign Types§
Source§impl<T, W: Warning> WithElement<T, W> for Result<CaveatDeferred<T, W>, ErrorSetDeferred<W>>
impl<T, W: Warning> WithElement<T, W> for Result<CaveatDeferred<T, W>, ErrorSetDeferred<W>>
Source§fn with_element(self, element: &Element<'_>) -> Verdict<T, W>
fn with_element(self, element: &Element<'_>) -> Verdict<T, W>
Associate a json::Element with a set of Warnings.