pub struct ErrorFormatter<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ErrorFormatter<'a>
impl<'a> ErrorFormatter<'a>
pub fn error(&mut self, err: &dyn Error)
pub fn note(&mut self, note: &dyn Display)
pub fn label(&mut self, label_key: &str, label_value: &String)
pub fn bind_group_label(&mut self, id: &Id<BindGroup<Api>>)
pub fn bind_group_layout_label(&mut self, id: &Id<BindGroupLayout<Api>>)
pub fn render_pipeline_label(&mut self, id: &Id<RenderPipeline<Api>>)
pub fn compute_pipeline_label(&mut self, id: &Id<ComputePipeline<Api>>)
pub fn buffer_label_with_key(&mut self, id: &Id<Buffer<Api>>, key: &str)
pub fn buffer_label(&mut self, id: &Id<Buffer<Api>>)
pub fn texture_label_with_key(&mut self, id: &Id<Texture<Api>>, key: &str)
pub fn texture_label(&mut self, id: &Id<Texture<Api>>)
pub fn texture_view_label_with_key( &mut self, id: &Id<TextureView<Api>>, key: &str, )
pub fn texture_view_label(&mut self, id: &Id<TextureView<Api>>)
pub fn sampler_label(&mut self, id: &Id<Sampler<Api>>)
pub fn command_buffer_label(&mut self, id: &Id<CommandBuffer<Api>>)
pub fn query_set_label(&mut self, id: &Id<QuerySet<Api>>)
Auto Trait Implementations§
impl<'a> Freeze for ErrorFormatter<'a>
impl<'a> !RefUnwindSafe for ErrorFormatter<'a>
impl<'a> !Send for ErrorFormatter<'a>
impl<'a> !Sync for ErrorFormatter<'a>
impl<'a> Unpin for ErrorFormatter<'a>
impl<'a> !UnwindSafe for ErrorFormatter<'a>
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more