[][src]Enum dynfmt::FormatType

pub enum FormatType {
    Display,
    Debug,
    Object,
    Octal,
    LowerHex,
    UpperHex,
    Pointer,
    Binary,
    LowerExp,
    UpperExp,
    Literal(&'static str),
}

Formatting types for arguments.

Variants

Display

Print the display representation of the argument.

Debug

Print the debug representation of the argument.

This is not yet implemented!

Object

Print a structured representation of the argument.

This will serialize the argument as JSON. If the json feature is turned off, an argument like this will result in an error.

Octal

Print the octal representation of the argument.

LowerHex

Print the lower hex representation of the argument.

UpperHex

Print the upper hex representation of the argument.

Pointer

Print the pointer representation of the argument.

Binary

Print the binary representation of the argument.

LowerExp

Print the lower exponential representation of the argument.

UpperExp

Print the upper exponential representation of the argument.

Literal(&'static str)

Print an escaped literal from the format string.

Implementations

impl FormatType[src]

pub fn name(self) -> &'static str[src]

Returns the name of this formatting type.

Trait Implementations

impl Clone for FormatType[src]

impl Copy for FormatType[src]

impl Debug for FormatType[src]

impl Default for FormatType[src]

impl Display for FormatType[src]

impl Eq for FormatType[src]

impl PartialEq<FormatType> for FormatType[src]

impl StructuralEq for FormatType[src]

impl StructuralPartialEq for FormatType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.