pub trait WithElement<T, K: Kind> {
// Required method
fn with_element(self, elem: &Element<'_>) -> Verdict<T, K>;
}Expand description
Associate a json::Element with a set of warning Kinds.
Required Methods§
fn with_element(self, elem: &Element<'_>) -> Verdict<T, K>
Implementations on Foreign Types§
Source§impl<T, K: Kind> WithElement<T, K> for Result<CaveatDeferred<T, K>, SetDeferred<K>>
impl<T, K: Kind> WithElement<T, K> for Result<CaveatDeferred<T, K>, SetDeferred<K>>
Source§fn with_element(self, elem: &Element<'_>) -> Verdict<T, K>
fn with_element(self, elem: &Element<'_>) -> Verdict<T, K>
Associate a json::Element with a set of warning Kinds.