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

Method span

impl/src/unraw.rs:88–93  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

86
87impl MemberUnraw {
88 pub fn span(&self) -> Span {
89 match self {
90 MemberUnraw::Named(ident) => ident.0.span(),
91 MemberUnraw::Unnamed(index) => index.span,
92 }
93 }
94}
95
96impl Display for MemberUnraw {

Callers 6

expand_shorthandMethod · 0.80
source_spanMethod · 0.80
getFunction · 0.80
parse_token_exprFunction · 0.80
to_tokensMethod · 0.80
call_site_identFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected