derail 0.3.0

An alternative to `core::error::Error`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Sealed module.

use crate::{Error, Visitor};

/// Sealed trait for [`Error`].
pub(crate) trait SealedError {}

impl<T> SealedError for T where T: Error + ?Sized {}

/// Sealed trait for [`Visitor`].
pub(crate) trait SealedVisitor {}

impl<T> SealedVisitor for T where T: Visitor {}