Used to derive the filename for an index
(&self)
| 39 | |
| 40 | // Used to derive the filename for an index |
| 41 | pub fn basename(&self) -> Option<String> { |
| 42 | self.0.get(0..2).map(|s| s.replace([' '], "+")) |
| 43 | } |
| 44 | |
| 45 | pub fn starts_with(&self, pat: &str) -> bool { |
| 46 | self.0.starts_with(pat) |