Struct rustc_builtin_macros::format::PositionalNamedArg
source · struct PositionalNamedArg {
ty: PositionalNamedArgType,
cur_piece: usize,
inner_span_to_replace: Option<InnerSpan>,
replacement: Symbol,
positional_named_arg_span: Span,
has_formatting: bool,
}
Expand description
Contains information necessary to create a lint for a positional named argument
Fields
ty: PositionalNamedArgType
cur_piece: usize
The piece of the using this argument (multiple pieces can use the same argument)
inner_span_to_replace: Option<InnerSpan>
The InnerSpan for in the string to be replaced with the named argument This will be None when the position is implicit
replacement: Symbol
The name to use instead of the position
positional_named_arg_span: Span
The span for the positional named argument (so the lint can point a message to it)
has_formatting: bool
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PositionalNamedArg
impl !Send for PositionalNamedArg
impl !Sync for PositionalNamedArg
impl Unpin for PositionalNamedArg
impl UnwindSafe for PositionalNamedArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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: 48 bytes