FormatPlaceholder in rustc_ast::format - Rust (original) (raw)
Struct FormatPlaceholder
pub struct FormatPlaceholder {
pub argument: FormatArgPosition,
pub span: Option<Span>,
pub format_trait: FormatTrait,
pub format_options: FormatOptions,
}The span inside the format string for the full {…} placeholder.
{}, {:?}, or {:x}, etc.
{} or {:.5} or {:-^20}, etc.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 128 bytes