//! `MakeVisitor` wrappers for working with `fmt::Debug` fields. usesuper::{MakeVisitor, VisitFmt, VisitOutput}; use tracing_core::field::{Field, Visit};
use core::fmt;
/// A visitor wrapper that ensures any `fmt::Debug` fields are formatted using /// the alternate (`:#`) formatter. #[derive(Debug, Clone)] pubstruct Alt<V>(V);
// TODO(eliza): When `error` as a primitive type is stable, add a // `DisplayErrors` wrapper...
// === impl Alt === // impl<V> Alt<V> { /// Wraps the provided visitor so that any `fmt::Debug` fields are formatted /// using the alternative (`:#`) formatter. pubfn new(inner: V) -> Self {
Alt(inner)
}
}
impl<T, V> MakeVisitor<T> for Alt<V> where
V: MakeVisitor<T>,
{ type Visitor = Alt<V::Visitor>;
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.