pub enum Suggestion {
None,
UsePositional,
RemoveRawIdent(Range<usize>),
ReorderFormatParameter(Range<usize>, String),
}Variants§
None
UsePositional
Replace inline argument with positional argument:
format!("{foo.bar}") -> format!("{}", foo.bar)
RemoveRawIdent(Range<usize>)
Remove r# from identifier:
format!("{r#foo}") -> format!("{foo}")
ReorderFormatParameter(Range<usize>, String)
Reorder format parameter:
format!("{foo:?#}") -> format!("{foo:#?}")
format!("{foo:?x}") -> format!("{foo:x?}")
format!("{foo:?X}") -> format!("{foo:X?}")
Auto Trait Implementations§
impl Freeze for Suggestion
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