(&self, c: char)
| 52 | } |
| 53 | } |
| 54 | fn contains(&self, c: char) -> bool |
| 55 | { |
| 56 | match self |
| 57 | { |
| 58 | MetaCharacter::Any => true, |
| 59 | MetaCharacter::Num => c.is_numeric(), |
| 60 | MetaCharacter::Whitespace => c.is_whitespace(), |
| 61 | MetaCharacter::Alphanum => c.is_alphanumeric(), |
| 62 | MetaCharacter::NonNum => !c.is_numeric(), |
| 63 | MetaCharacter::NonWhitespace => !c.is_whitespace(), |
| 64 | MetaCharacter::NonAlphanum => !c.is_alphanumeric(), |
| 65 | MetaCharacter::Lit(lc) => c == *lc, |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 |
no outgoing calls
no test coverage detected