pub(crate) trait OptionStringExt: Sized {
// Required method
fn clean_string(&mut self);
// Provided method
fn into_clean_string(self) -> Self { ... }
}Expand description
Extensions to Option<String>.
Required Methods§
Sourcefn clean_string(&mut self)
fn clean_string(&mut self)
Remove unnecessary or problematic characters from the string.
If the final string is empty, replaces it with None.
Provided Methods§
Sourcefn into_clean_string(self) -> Self
fn into_clean_string(self) -> Self
Remove unnecessary or problematic characters from the string.
If the final string is empty, replaces it with None.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.