doc.rust-lang.org
pub const fn as_str(&self) -> Option<&'static str>
Gets the formatted string, if it has no arguments to be formatted at runtime.
method
core
Stable since 1.52.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Binary
b 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 Debug
? 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 Display
Format trait for an empty format, {}.
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 struct Error
The error type which is returned from formatting a message into a stream.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Formatter<'a>
Configuration for formatting.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn align(&self) -> Option<Alignment>
Returns a flag indicating what form of alignment was requested.
method
core
Stable since 1.28.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn alternate(&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 debug_list<'b>(&'b mut self) -> DebugList<'b, 'a>
Creates a DebugList builder designed to assist with creation of fmt::Debug implementations for list-like structures.
method
core
Stable since 1.2.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn debug_map<'b>(&'b mut self) -> DebugMap<'b, 'a>
Creates a DebugMap builder designed to assist with creation of fmt::Debug implementations for map-like structures.
method
core
Stable since 1.2.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn debug_set<'b>(&'b mut self) -> DebugSet<'b, 'a>
Creates a DebugSet builder designed to assist with creation of fmt::Debug implementations for set-like structures.
method
core
Stable since 1.2.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn debug_struct<'b>(&'b mut self, name: &str) -> DebugStruct<'b, 'a>
Creates a DebugStruct builder designed to assist with creation of fmt::Debug implementations for structs.
method
core
Stable since 1.2.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn debug_tuple<'b>(&'b mut self, name: &str) -> DebugTuple<'b, 'a>
Creates a DebugTuple builder designed to assist with creation of fmt::Debug implementations for tuple structs.
method
core
Stable since 1.2.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn fill(&self) -> char
Returns the character used as 'fill' whenever there is alignment.
method
core
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn flags(&self) -> u32
Returns flags for formatting.
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
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