Trait wyz::fmt::FmtForward
source · pub trait FmtForward: Sized {
// Provided methods
fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary { ... }
fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display { ... }
fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp { ... }
fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex { ... }
fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal { ... }
fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer { ... }
fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp { ... }
fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex { ... }
fn fmt_list(self) -> FmtList<Self>
where for<'a> &'a Self: IntoIterator { ... }
}
Expand description
Wraps any value with a format-forward to Debug
.
Provided Methods§
sourcefn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.
sourcefn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted.
sourcefn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes self
to use its LowerExp
implementation when
Debug
-formatted.
sourcefn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes self
to use its LowerHex
implementation when
Debug
-formatted.
sourcefn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes self
to use its Octal
implementation when Debug
-formatted.
sourcefn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes self
to use its Pointer
implementation when
Debug
-formatted.
sourcefn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes self
to use its UpperExp
implementation when
Debug
-formatted.
sourcefn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes self
to use its UpperHex
implementation when
Debug
-formatted.
sourcefn fmt_list(self) -> FmtList<Self>where
for<'a> &'a Self: IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
for<'a> &'a Self: IntoIterator,
Formats each item in a sequence.
This wrapper structure conditionally implements all of the formatting
traits when self
can be viewed as an iterator whose items implement
them. It iterates over &self
and prints each item according to the
formatting specifier provided.