doc.rust-lang.org
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait UpperExp
E formatting.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub type Result = result::Result<(), Error>
The type returned by formatter methods.
type_alias
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Pointer
p formatting.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Octal
o formatting.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait LowerHex
x formatting.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait LowerExp
e formatting.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn write_str(&mut self, data: &str) -> Result
Writes some data to the underlying buffer contained within this formatter.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result
Glue for usage of the write! macro with implementors of this trait.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn width(&self) -> Option<usize>
Returns the optionally specified integer width that the output should be.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn sign_plus(&self) -> bool
Determines if the + flag was specified.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn sign_minus(&self) -> bool
Determines if the - flag was specified.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn sign_aware_zero_pad(&self) -> bool
Determines if the 0 flag was specified.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn precision(&self) -> Option<usize>
Returns the optionally specified precision for numeric types. Alternatively, the maximum width for string types.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn pad_integral(&mut self, is_nonnegative: bool, prefix: &str, buf: &str) -> Result
Performs the correct padding for an integer which has already been emitted into a str. The str should not contain the sign for the integer, that will be added by this method.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn pad(&mut self, s: &str) -> Result
Takes a string slice and emits it to the internal buffer after applying the relevant formatting flags specified.
method
core
Stable since 1.0.0
Version 1.100.0-nightly