pub enum FmtArg {
    I64(i64),
    I32(i32),
    U8(u8),
    F64(f64),
    F32(f32),
    String(String),
}

Variants

I64(i64)

I32(i32)

U8(u8)

F64(f64)

F32(f32)

String(String)

Trait Implementations

Returns true if self can be formatted using the given specifier.

Formats the value the way it would be formatted if it implemented std::fmt::Display.

Formats the value the way it would be formatted if it implemented std::fmt::Debug.

Formats the value the way it would be formatted if it implemented std::fmt::Octal.

Formats the value the way it would be formatted if it implemented std::fmt::LowerHex.

Formats the value the way it would be formatted if it implemented std::fmt::UpperHex.

Formats the value the way it would be formatted if it implemented std::fmt::Binary.

Formats the value the way it would be formatted if it implemented std::fmt::LowerExp.

Formats the value the way it would be formatted if it implemented std::fmt::UpperExp.

Performs a type conversion into usize that might fail. Like TryInto<usize>, but does not consume self. The parser uses this to support formats whose width or precision use “dollar syntax”. For more information about these, see std::fmt. The default implementation always returns an error. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts the given value to a String. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.