MCPcopy Create free account
hub / github.com/dtolnay/thiserror / source_span

Method source_span

impl/src/prop.rs:77–85  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

75 }
76
77 pub(crate) fn source_span(&self) -> Span {
78 if let Some(source_attr) = &self.attrs.source {
79 source_attr.span
80 } else if let Some(from_attr) = &self.attrs.from {
81 from_attr.span
82 } else {
83 self.member.span()
84 }
85 }
86}
87
88fn from_field<'a, 'b>(fields: &'a [Field<'b>]) -> Option<&'a Field<'b>> {

Callers

nothing calls this directly

Calls 1

spanMethod · 0.80

Tested by

no test coverage detected