Skip to main content

WithElement

Trait WithElement 

Source
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§

Source

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>>

Source§

fn with_element(self, element: &Element<'_>) -> Verdict<T, W>

Associate a json::Element with a set of Warnings.

Implementors§