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 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 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 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_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_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_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 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 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 struct Formatter<'a>
Configuration for formatting.
struct
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
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 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 Binary
b formatting.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
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 struct Arguments<'a>
This structure represents a safely precompiled version of a format string and its arguments. This cannot be generated at runtime because it cannot safely be done, so no constructors are given and the fields are private to prevent modification.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub enum Alignment
Possible alignments returned by Formatter::align
enum
core
Stable since 1.28.0
Version 1.100.0-nightly