devela::all

Trait ExtError

Source
pub trait ExtError: Error {
    type Kind;

    // Required methods
    fn error_eq(&self, other: &Self) -> bool;
    fn error_kind(&self) -> Self::Kind;
}
Expand description

Extension trait providing additional methods for T:Error.

Required Associated Types§

Source

type Kind

Represents the specific kind of error, if applicable.

Types implementing this trait may use Kind to categorize errors into meaningful groups for comparison or analysis.

Required Methods§

Source

fn error_eq(&self, other: &Self) -> bool

Checks if two errors are equivalent based on their kind or other criteria.

Source

fn error_kind(&self) -> Self::Kind

Returns the kind of the error, if applicable.

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 ExtError for DataNotEnough

Source§

impl ExtError for MismatchedBounds

Source§

impl ExtError for PartialSpace

Source§

impl ExtError for NumError

Source§

impl ExtError for InvalidText

Source§

impl ExtError for LayoutError

Available on crate feature layout only.
Source§

impl ExtError for AudioError

Available on crate feature audio only.
Source§

impl ExtError for ColorError

Available on crate feature color only.
Source§

impl ExtError for DrawError

Available on crate feature draw only.
Source§

impl ExtError for FontError

Available on crate feature font only.
Source§

impl ExtError for ImageError

Available on crate feature image only.
Source§

impl ExtError for MediaError

Available on media·· only.
Source§

impl ExtError for MidiError

Available on crate feature midi only.
Source§

impl ExtError for NotAvailable

Source§

impl ExtError for DataOverflow

Source§

impl ExtError for ElementNotFound

Source§

impl ExtError for IndexOutOfBounds

Source§

impl ExtError for InvalidAxisLength

Source§

impl ExtError for KeyAlreadyExists

Source§

impl ExtError for MismatchedCapacity

Source§

impl ExtError for MismatchedDimensions

Source§

impl ExtError for MismatchedIndices

Source§

impl ExtError for NodeEmpty

Source§

impl ExtError for NodeLinkNotSet

Source§

impl ExtError for NodeLinkNotUnique

Source§

impl ExtError for NotEnoughElements

Source§

impl ExtError for NotEnoughSpace

Source§

impl ExtError for PartiallyAdded

Source§

impl ExtError for SystemTimeError

Available on crate feature std only.
Source§

impl ExtError for InvalidChar

Source§

impl ExtError for InvalidUtf8

Source§

impl ExtError for FailedErrorConversion

Source§

impl ExtError for IoError

Available on crate feature std, or non-crate feature std and crate feature io only.
Source§

impl ExtError for NotImplemented

Source§

impl ExtError for NotSupported