pub fn span(&self) -> Span {
        let start = match self.messages[0].start_span.get() {
            Some(span) => *span,
            None => return Span::call_site(),
        };
        let end = match self.messages[0].end_span.get() {
            Some(span) => *span,
            None => return Span::call_site(),
        };
        start.join(end).unwrap_or(start)
    }
/// The source location of the error.
///
/// Spans are not thread-safe so this function returns `Span::call_site()`
/// if called from a different thread than the one on which the `Error` was
/// originally created.
The source location of the error.
Spans are not thread-safe so this function returns `Span::call_site()`
if called from a different thread than the one on which the `Error` was
originally created.
The source location of the error . Spans are not thread - safe so this function returns ` Span :: call_site () ` if called from a different thread than the one on which the ` Error ` was originally created .
pub fn span(&self) -> Span {
        let start = match self.messages[0].start_span.get() {
            Some(span) => *span,
            None => return Span::call_site(),
        };
        let end = match self.messages[0].end_span.get() {
            Some(span) => *span,
            None => return Span::call_site(),
        };
        start.join(end).unwrap_or(start)
    }
pub fn span ( & self ) -> Span { let start = match self . messages [ 0 ] . start_span . get ( ) { Some ( span ) => * span , None => return Span :: call_site ( ) , } ; let end = match self . messages [ 0 ] . end_span . get ( ) { Some ( span ) => * span , None => return Span :: call_site ( ) , } ; start . join ( end ) . unwrap_or ( start ) }
The source location of the error.
The source location of the error .
&self
&self