Trait naga::span::AddSpan

source ·
pub(crate) trait AddSpan: Sized {
    type Output;

    // Required methods
    fn with_span(self) -> Self::Output;
    fn with_span_static(
        self,
        span: Span,
        description: &'static str,
    ) -> Self::Output;
    fn with_span_context(self, span_context: SpanContext) -> Self::Output;
    fn with_span_handle<T, A: SpanProvider<T>>(
        self,
        handle: Handle<T>,
        arena: &A,
    ) -> Self::Output;
}
Expand description

Convenience trait for Error to be able to apply spans to anything.

Required Associated Types§

Required Methods§

source

fn with_span(self) -> Self::Output

source

fn with_span_static(self, span: Span, description: &'static str) -> Self::Output

source

fn with_span_context(self, span_context: SpanContext) -> Self::Output

source

fn with_span_handle<T, A: SpanProvider<T>>( self, handle: Handle<T>, arena: &A, ) -> Self::Output

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<E> AddSpan for E
where E: Error,