MCPcopy Index your code
hub / github.com/eventuallyconsultant/codegenr / trim_char

Method trim_char

codegenr/src/helpers/string_ext.rs:28–30  ·  view source on GitHub ↗
(&self, trimmer: Option<String>)

Source from the content-addressed store, hash-verified

26
27// impl<T> StringExt for T where T: AsRef<str> {}
28
29impl 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

Callers 2

call_innerMethod · 0.80
callMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected