[][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.

Methods

impl FormatType
[src]

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

Returns the name of this formatting type.

Trait Implementations

impl Eq for FormatType
[src]

impl Copy for FormatType
[src]

impl Default for FormatType
[src]

impl PartialEq<FormatType> for FormatType
[src]

impl Clone for FormatType
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FormatType
[src]

impl Display for FormatType
[src]

Auto Trait Implementations

impl Send for FormatType

impl Sync for FormatType

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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