Enum rustc_parse_format::Suggestion
source · pub enum Suggestion {
None,
UsePositional,
RemoveRawIdent(InnerSpan),
}
Variants§
None
UsePositional
Replace inline argument with positional argument:
format!("{foo.bar}")
-> format!("{}", foo.bar)
RemoveRawIdent(InnerSpan)
Remove r#
from identifier:
format!("{r#foo}")
-> format!("{foo}")
Auto Trait Implementations§
impl RefUnwindSafe for Suggestion
impl Send for Suggestion
impl Sync for Suggestion
impl Unpin for Suggestion
impl UnwindSafe for Suggestion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn 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: 24 bytes
Size for each variant:
None
: 0 bytesUsePositional
: 0 bytesRemoveRawIdent
: 16 bytes