//! Internal error handling code, shared between encoding and decoding. //! //! This is used mainly for backwards compatibility and abstraction over std/no_std.
/// An alias to the "default" error handling type. /// /// This is problematic because when working on `#[no_std]`, because there is no [`std::error::Error`] trait and also no [`std::io::Error`] type. /// /// Furthermore, this doesn't abstract over the differences between different implementations of [`RmpRead`](crate::decode::RmpRead)/[`RmpWrite`](crate::encode::RmpWrite). /// /// When working directly with bytes streams, the error type is actually [Infallible](core::convert::Infallible). /// /// For these two reasons, this type is deprecated #[cfg(feature = "std")] #[deprecated(note = "Doesn't abstract over RmpRead/RmpWrite (or work on no_std), use RmpRead::Error/RmpWrite::Error and RmpReadErr/RmpWriteErr instead")] pubtype Error = ::std::io::Error;
#[cfg(not(feature = "std"))] #[deprecated(note = "Doesn't work meaningfully on no_std")] pubtype Error = ::core::convert::Infallible;
/// Internal type used to abstract over the [`std::error::Error`] trait /// /// This is a nop in no-std environments. #[cfg(feature = "std")] #[doc(hidden)] pubtrait MaybeErrBound: std::error::Error {} #[cfg(feature = "std")] impl<T: ?Sized + std::error::Error> MaybeErrBound for T {} #[cfg(not(feature = "std"))] #[doc(hidden)] pubtrait MaybeErrBound {} #[cfg(not(feature = "std"))] impl<T: ?Sized> MaybeErrBound for T {}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-18)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.