(&self, trimmer: Option<String>)
| 26 | |
| 27 | // impl<T> StringExt for T where T: AsRef<str> {} |
| 28 | |
| 29 | impl StringExt for Option<String> { |
| 30 | fn is_empty_or_whitespaces(&self) -> bool { |
| 31 | self.as_ref().map_or(true, |s| s.is_empty_or_whitespaces()) |
| 32 | } |
| 33 |
no outgoing calls
no test coverage detected