Variants
I64(i64)
I32(i32)
U8(u8)
F64(f64)
F32(f32)
String(String)
Trait Implementations
sourceimpl FormatArgument for FmtArg
impl FormatArgument for FmtArg
sourcefn supports_format(&self, spec: &Specifier) -> bool
fn supports_format(&self, spec: &Specifier) -> bool
Returns true
if self
can be formatted using the given specifier.
sourcefn fmt_display(&self, f: &mut Formatter<'_>) -> Result
fn fmt_display(&self, f: &mut Formatter<'_>) -> Result
Formats the value the way it would be formatted if it implemented std::fmt::Display
.
sourcefn fmt_debug(&self, _f: &mut Formatter<'_>) -> Result
fn fmt_debug(&self, _f: &mut Formatter<'_>) -> Result
Formats the value the way it would be formatted if it implemented std::fmt::Debug
.
sourcefn fmt_octal(&self, _f: &mut Formatter<'_>) -> Result
fn fmt_octal(&self, _f: &mut Formatter<'_>) -> Result
Formats the value the way it would be formatted if it implemented std::fmt::Octal
.
sourcefn fmt_lower_hex(&self, _f: &mut Formatter<'_>) -> Result
fn fmt_lower_hex(&self, _f: &mut Formatter<'_>) -> Result
Formats the value the way it would be formatted if it implemented std::fmt::LowerHex
.
sourcefn fmt_upper_hex(&self, _f: &mut Formatter<'_>) -> Result
fn fmt_upper_hex(&self, _f: &mut Formatter<'_>) -> Result
Formats the value the way it would be formatted if it implemented std::fmt::UpperHex
.
sourcefn fmt_binary(&self, _f: &mut Formatter<'_>) -> Result
fn fmt_binary(&self, _f: &mut Formatter<'_>) -> Result
Formats the value the way it would be formatted if it implemented std::fmt::Binary
.
sourcefn fmt_lower_exp(&self, _f: &mut Formatter<'_>) -> Result
fn fmt_lower_exp(&self, _f: &mut Formatter<'_>) -> Result
Formats the value the way it would be formatted if it implemented std::fmt::LowerExp
.
sourcefn fmt_upper_exp(&self, _f: &mut Formatter<'_>) -> Result
fn fmt_upper_exp(&self, _f: &mut Formatter<'_>) -> Result
Formats the value the way it would be formatted if it implemented std::fmt::UpperExp
.
Auto Trait Implementations
impl RefUnwindSafe for FmtArg
impl Send for FmtArg
impl Sync for FmtArg
impl Unpin for FmtArg
impl UnwindSafe for FmtArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more