Trait UnsupportedValueErr

Source
pub trait UnsupportedValueErr {
    // Required method
    fn unsupported_value(context: &'static str, name: &'static str) -> Self;
}
Expand description

Trait for creating “unsupported value” errors.

Required Methods§

Source

fn unsupported_value(context: &'static str, name: &'static str) -> Self

Creates a new “unsupported value” error when the “alloc” feature is disabled.

§Arguments
  • context - The context in which the error occurred.
  • name - The name of the unsupported value.
§Returns

A new error instance.

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§