pub fn span_suggestion<S: Into<MultiSpan>>(&mut self,
                                               sp: S,
                                               msg: &str,
                                               suggestion: String)
                                               -> &mut Self {
        self.sub(Level::Help,
                 msg,
                 MultiSpan::new(),
                 Some(Suggestion(CodeSuggestion {
                     msp: sp.into(),
                     substitutes: vec![suggestion],
                 })));
        self
    }
/// Prints out a message with a suggested edit of the code.
///
/// See `diagnostic::RenderSpan::Suggestion` for more information.
Prints out a message with a suggested edit of the code.
See `diagnostic::RenderSpan::Suggestion` for more information.
Prints out a message with a suggested edit of the code . See ` diagnostic :: RenderSpan :: Suggestion ` for more information .
pub fn span_suggestion<S: Into<MultiSpan>>(&mut self,
                                               sp: S,
                                               msg: &str,
                                               suggestion: String)
                                               -> &mut Self {
        self.sub(Level::Help,
                 msg,
                 MultiSpan::new(),
                 Some(Suggestion(CodeSuggestion {
                     msp: sp.into(),
                     substitutes: vec![suggestion],
                 })));
        self
    }
pub fn span_suggestion < S : Into < MultiSpan > > ( & mut self , sp : S , msg : & str , suggestion : String ) -> & mut Self { self . sub ( Level :: Help , msg , MultiSpan :: new ( ) , Some ( Suggestion ( CodeSuggestion { msp : sp . into ( ) , substitutes : vec ! [ suggestion ] , } ) ) ) ; 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
S
msg
&str
suggestion
String
&mut self
sp
S
msg
&str
suggestion
String