Skip to main content

ContextError

Trait ContextError 

Source
pub trait ContextError: Sized {
    // Required method
    fn add_context(self, context: &'static str) -> Self;
}
Expand description

.context() でコンテキストラベルを積むトレイト。

Required Methods§

Source

fn add_context(self, context: &'static str) -> Self

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 ContextError for MinimalError

Source§

impl ContextError for ParseError

Available on crate feature alloc only.