Skip to main content

WithElement

Trait WithElement 

Source
pub trait WithElement<T, W: Warning> {
    type Output;

    // Required method
    fn with_element(self, element: &Element<'_>) -> Self::Output;
}
Expand description

Associate a json::Element with a set of Warnings contained by a [VerdictDeferred].

Required Associated Types§

Required Methods§

Source

fn with_element(self, element: &Element<'_>) -> Self::Output

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

Source§

fn with_element(self, element: &Element<'_>) -> Self::Output

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

Source§

type Output = Result<Caveat<T, W>, ErrorSet<W>>

Implementors§

Source§

impl<T, W: Warning> WithElement<T, W> for CaveatDeferred<T, W>

Source§

type Output = Caveat<T, W>