(self)
| 30 | |
| 31 | impl ReadMode { |
| 32 | pub fn as_str(self) -> &'static str { |
| 33 | match self { |
| 34 | Self::Full => "full", |
| 35 | Self::Lines => "lines", |
| 36 | Self::Map => "map", |
| 37 | Self::Signatures => "signatures", |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | pub fn parse(s: &str) -> Option<Self> { |
| 42 | match s { |
no outgoing calls
no test coverage detected