Enum rustc_parse_format::Position [−][src]
Expand description
Enum describing where an argument for a format can be located.
Variants
ArgumentImplicitlyIs(usize)
The argument is implied to be located at an index
Tuple Fields of ArgumentImplicitlyIs
0: usize
ArgumentIs(usize)
The argument is located at a specific index given in the format
Tuple Fields of ArgumentIs
0: usize
ArgumentNamed(Symbol)
The argument has a name.
Tuple Fields of ArgumentNamed
0: Symbol
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Position
impl UnwindSafe for Position
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
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: 16 bytes
Size for each variant:
ArgumentImplicitlyIs
: 12 bytesArgumentIs
: 12 bytesArgumentNamed
: 4 bytes