naga::span

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

Source

type Output

The returned output type.

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E> AddSpan for E