#[doc(hidden)] pubtrait Sealed {} impl<T: Display + ?Sized> Sealed for &T {} #[cfg(feature = "std")] impl Sealed for Path {} #[cfg(feature = "std")] impl Sealed for PathBuf {}
// Add a synthetic second impl of AsDisplay to prevent the "single applicable // impl" rule from making too weird inference decision based on the single impl // for &T, which could lead to code that compiles with thiserror's std feature // off but breaks under feature unification when std is turned on by an // unrelated crate. #[cfg(not(feature = "std"))] mod placeholder { usesuper::{AsDisplay, Sealed}; use core::fmt::{self, Display};
pubstruct Placeholder;
impl<'a> AsDisplay<'a> for Placeholder { type Target = Self;
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.