Parse edge direction
(tokens: &[Token])
| 2418 | |
| 2419 | /// Parse edge direction |
| 2420 | fn edge_direction(tokens: &[Token]) -> IResult<&[Token], EdgeDirection> { |
| 2421 | alt(( |
| 2422 | value(EdgeDirection::Both, expect_token(Token::ArrowBoth)), |
| 2423 | value(EdgeDirection::Outgoing, expect_token(Token::Arrow)), |
| 2424 | value(EdgeDirection::Incoming, expect_token(Token::ArrowLeft)), |
| 2425 | value(EdgeDirection::Undirected, expect_token(Token::Dash)), |
| 2426 | ))(tokens) |
| 2427 | } |
| 2428 | |
| 2429 | /// Parse comparison operator |
| 2430 | fn comparison_operator(tokens: &[Token]) -> IResult<&[Token], Operator> { |
nothing calls this directly
no test coverage detected