pub fn span_label(&mut self, span: Span, label: &fmt::Display)
                      -> &mut Self {
        self.span.push_span_label(span, format!("{}", label));
        self
    }
/// Add a span/label to be included in the resulting snippet.
/// This is pushed onto the `MultiSpan` that was created when the
/// diagnostic was first built. If you don't call this function at
/// all, and you just supplied a `Span` to create the diagnostic,
/// then the snippet will just include that `Span`, which is
/// called the primary span.
Add a span/label to be included in the resulting snippet.
This is pushed onto the `MultiSpan` that was created when the
diagnostic was first built. If you don't call this function at
all, and you just supplied a `Span` to create the diagnostic,
then the snippet will just include that `Span`, which is
called the primary span.
Add a span / label to be included in the resulting snippet . This is pushed onto the ` MultiSpan ` that was created when the diagnostic was first built . If you don ' t call this function at all and you just supplied a ` Span ` to create the diagnostic then the snippet will just include that ` Span ` which is called the primary span .
pub fn span_label(&mut self, span: Span, label: &fmt::Display)
                      -> &mut Self {
        self.span.push_span_label(span, format!("{}", label));
        self
    }
pub fn span_label ( & mut self , span : Span , label : & fmt :: Display ) -> & mut Self { self . span . push_span_label ( span , format ! ( " " label ) ) ; self }
Add a span/label to be included in the resulting snippet.
Add a span / label to be included in the resulting snippet .
&mut self
span
Span
label
&fmt::Display
&mut self
span
Span
label
&fmt::Display