pub struct SpanConverter<SG: SpanGenerator, SC: SpanConverterFunction<Color = SG::Color>> { /* private fields */ }Expand description
Composable span pipeline.
Combines a span generator with a span converter: first generates the span, then applies the conversion function to the result.
Port of C++ span_converter<SpanGenerator, SpanConverter>.
Implementations§
Source§impl<SG: SpanGenerator, SC: SpanConverterFunction<Color = SG::Color>> SpanConverter<SG, SC>
impl<SG: SpanGenerator, SC: SpanConverterFunction<Color = SG::Color>> SpanConverter<SG, SC>
Trait Implementations§
Source§impl<SG: SpanGenerator, SC: SpanConverterFunction<Color = SG::Color>> SpanGenerator for SpanConverter<SG, SC>
impl<SG: SpanGenerator, SC: SpanConverterFunction<Color = SG::Color>> SpanGenerator for SpanConverter<SG, SC>
Auto Trait Implementations§
impl<SG, SC> Freeze for SpanConverter<SG, SC>
impl<SG, SC> RefUnwindSafe for SpanConverter<SG, SC>where
SG: RefUnwindSafe,
SC: RefUnwindSafe,
impl<SG, SC> Send for SpanConverter<SG, SC>
impl<SG, SC> Sync for SpanConverter<SG, SC>
impl<SG, SC> Unpin for SpanConverter<SG, SC>
impl<SG, SC> UnwindSafe for SpanConverter<SG, SC>where
SG: UnwindSafe,
SC: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more