Trait naga::span::SpanProvider

source ·
pub(crate) trait SpanProvider<T> {
    // Required method
    fn get_span(&self, handle: Handle<T>) -> Span;

    // Provided method
    fn get_span_context(&self, handle: Handle<T>) -> SpanContext { ... }
}
Expand description

Trait abstracting over getting a span from an Arena or a UniqueArena.

Required Methods§

source

fn get_span(&self, handle: Handle<T>) -> Span

Provided Methods§

source

fn get_span_context(&self, handle: Handle<T>) -> SpanContext

Implementors§

source§

impl<T> SpanProvider<T> for Arena<T>

source§

impl<T> SpanProvider<T> for UniqueArena<T>