Trait mas_tower::EnrichSpan

source ·
pub trait EnrichSpan<T> {
    // Required method
    fn enrich_span(&self, span: &Span, t: &T);
}
Expand description

A trait for enriching a span with information a structure.

Required Methods§

source

fn enrich_span(&self, span: &Span, t: &T)

Implementations on Foreign Types§

source§

impl<T> EnrichSpan<T> for ()

source§

fn enrich_span(&self, _span: &Span, _t: &T)

source§

impl<T, R> EnrichSpan<R> for Option<T>
where T: EnrichSpan<R>,

source§

fn enrich_span(&self, span: &Span, request: &R)

source§

impl<T, R> EnrichSpan<R> for Vec<T>
where T: EnrichSpan<R>,

source§

fn enrich_span(&self, span: &Span, request: &R)

source§

impl<T, R, const N: usize> EnrichSpan<R> for [T; N]
where T: EnrichSpan<R>,

source§

fn enrich_span(&self, span: &Span, request: &R)

source§

impl<T, T1> EnrichSpan<T> for (T1,)
where T1: EnrichSpan<T>,

source§

fn enrich_span(&self, span: &Span, t: &T)

source§

impl<T, T1, T2> EnrichSpan<T> for (T1, T2)
where T1: EnrichSpan<T>, T2: EnrichSpan<T>,

source§

fn enrich_span(&self, span: &Span, t: &T)

source§

impl<T, T1, T2, T3> EnrichSpan<T> for (T1, T2, T3)
where T1: EnrichSpan<T>, T2: EnrichSpan<T>, T3: EnrichSpan<T>,

source§

fn enrich_span(&self, span: &Span, t: &T)

source§

impl<T, T1, T2, T3, T4> EnrichSpan<T> for (T1, T2, T3, T4)
where T1: EnrichSpan<T>, T2: EnrichSpan<T>, T3: EnrichSpan<T>, T4: EnrichSpan<T>,

source§

fn enrich_span(&self, span: &Span, t: &T)

source§

impl<T, T1, T2, T3, T4, T5> EnrichSpan<T> for (T1, T2, T3, T4, T5)
where T1: EnrichSpan<T>, T2: EnrichSpan<T>, T3: EnrichSpan<T>, T4: EnrichSpan<T>, T5: EnrichSpan<T>,

source§

fn enrich_span(&self, span: &Span, t: &T)

source§

impl<T, T1, T2, T3, T4, T5, T6> EnrichSpan<T> for (T1, T2, T3, T4, T5, T6)
where T1: EnrichSpan<T>, T2: EnrichSpan<T>, T3: EnrichSpan<T>, T4: EnrichSpan<T>, T5: EnrichSpan<T>, T6: EnrichSpan<T>,

source§

fn enrich_span(&self, span: &Span, t: &T)

source§

impl<T, T1, T2, T3, T4, T5, T6, T7> EnrichSpan<T> for (T1, T2, T3, T4, T5, T6, T7)
where T1: EnrichSpan<T>, T2: EnrichSpan<T>, T3: EnrichSpan<T>, T4: EnrichSpan<T>, T5: EnrichSpan<T>, T6: EnrichSpan<T>, T7: EnrichSpan<T>,

source§

fn enrich_span(&self, span: &Span, t: &T)

source§

impl<T, T1, T2, T3, T4, T5, T6, T7, T8> EnrichSpan<T> for (T1, T2, T3, T4, T5, T6, T7, T8)
where T1: EnrichSpan<T>, T2: EnrichSpan<T>, T3: EnrichSpan<T>, T4: EnrichSpan<T>, T5: EnrichSpan<T>, T6: EnrichSpan<T>, T7: EnrichSpan<T>, T8: EnrichSpan<T>,

source§

fn enrich_span(&self, span: &Span, t: &T)

Implementors§

source§

impl<T, F> EnrichSpan<T> for FnWrapper<F>
where F: Fn(&Span, &T),

source§

impl<V, T> EnrichSpan<T> for KV<V>
where V: Value,