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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
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.