pub fn span_suggestion(&mut self, sp: Span, msg: &str, suggestion: String) -> &mut Self {
        self.suggestions.push(CodeSuggestion {
            substitution_parts: vec![Substitution {
                span: sp,
                substitutions: vec![suggestion],
            }],
            msg: msg.to_owned(),
        });
        self
    }
/// Prints out a message with a suggested edit of the code.
///
/// See `diagnostic::CodeSuggestion` for more information.
Prints out a message with a suggested edit of the code.
See `diagnostic::CodeSuggestion` for more information.
Prints out a message with a suggested edit of the code . See ` diagnostic :: CodeSuggestion ` for more information .
pub fn span_suggestion(&mut self, sp: Span, msg: &str, suggestion: String) -> &mut Self {
        self.suggestions.push(CodeSuggestion {
            substitution_parts: vec![Substitution {
                span: sp,
                substitutions: vec![suggestion],
            }],
            msg: msg.to_owned(),
        });
        self
    }
pub fn span_suggestion ( & mut self , sp : Span , msg : & str , suggestion : String ) -> & mut Self { self . suggestions . push ( CodeSuggestion { substitution_parts : vec ! [ Substitution { span sp substitutions vec [ suggestion ] } ] , msg : msg . to_owned ( ) , } ) ; self }
Prints out a message with a suggested edit of the code.
Prints out a message with a suggested edit of the code .
&mut self
sp
Span
msg
&str
suggestion
String
&mut self
sp
Span
msg
&str
suggestion
String