Struct tracing_subscriber::field::debug::Alt [−][src]
A visitor wrapper that ensures any fmt::Debug
fields are formatted using
the alternate (:#
) formatter.
Implementations
impl<V> Alt<V>
[src]
pub fn new(inner: V) -> Self
[src]
Wraps the provided visitor so that any fmt::Debug
fields are formatted
using the alternative (:#
) formatter.
Trait Implementations
impl<V: Clone> Clone for Alt<V>
[src]
impl<V: Debug> Debug for Alt<V>
[src]
impl<T, V> MakeVisitor<T> for Alt<V> where
V: MakeVisitor<T>,
[src]
V: MakeVisitor<T>,
type Visitor = Alt<V::Visitor>
The visitor type produced by this MakeVisitor
.
fn make_visitor(&self, target: T) -> Self::Visitor
[src]
impl<V> Visit for Alt<V> where
V: Visit,
[src]
V: Visit,
fn record_i64(&mut self, field: &Field, value: i64)
[src]
fn record_u64(&mut self, field: &Field, value: u64)
[src]
fn record_bool(&mut self, field: &Field, value: bool)
[src]
fn record_str(&mut self, field: &Field, value: &str)
[src]
Visit a string value.
fn record_debug(&mut self, field: &Field, value: &dyn Debug)
[src]
pub fn record_error(&mut self, field: &Field, value: &(dyn Error + 'static))
[src]
impl<V> VisitFmt for Alt<V> where
V: VisitFmt,
[src]
V: VisitFmt,
impl<V, O> VisitOutput<O> for Alt<V> where
V: VisitOutput<O>,
[src]
V: VisitOutput<O>,
fn finish(self) -> O
[src]
fn visit<R>(self, fields: &R) -> Out where
R: RecordFields,
Self: Sized,
[src]
R: RecordFields,
Self: Sized,
impl<V> VisitWrite for Alt<V> where
V: VisitWrite,
[src]
V: VisitWrite,
Auto Trait Implementations
impl<V> RefUnwindSafe for Alt<V> where
V: RefUnwindSafe,
V: RefUnwindSafe,
impl<V> Send for Alt<V> where
V: Send,
V: Send,
impl<V> Sync for Alt<V> where
V: Sync,
V: Sync,
impl<V> Unpin for Alt<V> where
V: Unpin,
V: Unpin,
impl<V> UnwindSafe for Alt<V> where
V: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, M> MakeExt<T> for M where
M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>,
[src]
M: MakeVisitor<T> + Sealed<MakeExtMarker<T>>,
fn debug_alt(self) -> Alt<Self>
[src]
fn display_messages(self) -> Messages<Self>
[src]
fn delimited<D>(self, delimiter: D) -> Delimited<D, Self> where
D: AsRef<str> + Clone,
Self::Visitor: VisitFmt,
[src]
D: AsRef<str> + Clone,
Self::Visitor: VisitFmt,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,