pub struct FormatSpec<'a> {
pub fill: Option<char>,
pub align: Alignment,
pub flags: u32,
pub precision: Count<'a>,
pub width: Count<'a>,
pub ty: &'a str,
}
Specification for the formatting of an argument in the format string.
Fields
fill | Optionally specified character to fill alignment with
|
align | Optionally specified alignment
|
flags | Packed version of various flags provided
|
precision | The integer precision to use
|
width | The string width requested for the resulting format
|
ty | The descriptor string representing the name of the format desired for
this argument, this can be empty or any number of characters, although
it is required to be one word.
|
Trait Implementations
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).