Struct strfmt::Formatter [] [src]

pub struct Formatter<'a, 'b> {
    pub key: &'a str,
    // some fields omitted
}

Fields

Methods

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

create Formatter from format string

[src]

call this to re-write the original format string verbatum back to the output

[src]

fill getter

[src]

align getter

[src]

width getter

[src]

thousands getter

[src]

precision getter

[src]

set precision to None, used for formatting int, float, etc

[src]

sign getter

[src]

sign plus getter here because it is in fmt::Formatter

[src]

sign minus getter here because it is in fmt::Formatter

[src]

alternate getter

[src]

type getter

[src]

UNSTABLE: in the future, this may return true if all validty checks for a float return true return true if ty is valid for formatting integers

[src]

UNSTABLE: in the future, this may return true if all validty checks for a float return true return true if ty is valid for formatting floats

impl<'a, 'b> Formatter<'a, 'b>
[src]

implement formatting of strings

[src]

format the given string onto the buffer

[src]

UNSTABLE+UNTESTED: do not use in your own code (yet) Do the same as str but do not check the format string for errors. This gives a moderate performance boost. This isn't exactly unsafe, it just ends up ignoring extranious format specifiers For example, {x:<-#10} should technically be formatting an int, but ignoring the integer specific formatting is probably not the end of the world This can also be used by the u64 etc methods to finish their formatting while still using the str formatter for width and alignment

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

impl<'a, 'b> Formatter<'a, 'b>
[src]

[src]

Trait Implementations

impl<'a, 'b> Debug for Formatter<'a, 'b>
[src]

[src]

Formats the value using the given formatter.

impl<'a, 'b> PartialEq for Formatter<'a, 'b>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a, 'b> Write for Formatter<'a, 'b>
[src]

[src]

Writes a slice of bytes into this writer, returning whether the write succeeded. Read more

1.1.0
[src]

Writes a [char] into this writer, returning whether the write succeeded. Read more

1.0.0
[src]

Glue for usage of the [write!] macro with implementors of this trait. Read more