| //! This is an internal module used by the ifmt! runtime. These structures are |
| //! emitted to static arrays to precompile format strings ahead of time. |
| //! These definitions are similar to their `ct` equivalents, but differ in that |
| //! these can be statically allocated and are slightly optimized for the runtime |
| #![allow(missing_debug_implementations)] |
| #[lang = "format_placeholder"] |
| // FIXME: Rename this to Placeholder |
| Self { position, format: FormatSpec { fill, align, flags, precision, width } } |
| /// Possible alignments that can be requested as part of a formatting directive. |
| #[lang = "format_alignment"] |
| #[derive(Copy, Clone, PartialEq, Eq)] |
| /// Indication that contents should be left-aligned. |
| /// Indication that contents should be right-aligned. |
| /// Indication that contents should be center-aligned. |
| /// No alignment was requested. |
| /// Used by [width](https://doc.rust-lang.org/std/fmt/#width) and [precision](https://doc.rust-lang.org/std/fmt/#precision) specifiers. |
| /// Specified with a literal number, stores the value |
| /// Specified using `$` and `*` syntaxes, stores the index into `args` |