MCPcopy Create free account
hub / github.com/carllerche/assert-struct / span

Method span

assert-struct-macros/src/pattern/comparison.rs:29–38  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

27
28impl ComparisonOp {
29 pub fn span(&self) -> Span {
30 match self {
31 ComparisonOp::Less(t) => t.span(),
32 ComparisonOp::LessEqual(t) => t.span(),
33 ComparisonOp::Greater(t) => t.span(),
34 ComparisonOp::GreaterEqual(t) => t.span(),
35 ComparisonOp::Equal(t) => t.span(),
36 ComparisonOp::NotEqual(t) => t.span(),
37 }
38 }
39}
40
41impl Parse for ComparisonOp {

Callers 9

into_patternMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parse_one_dot_intoMethod · 0.45
parse_one_intoMethod · 0.45
parseMethod · 0.45
parse_comma_separatedMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected