pub trait Replace {
// Required method
fn replace(&self, char_being_removed: char) -> Option<char>;
}
Expand description
Required Methods§
Implementations on Foreign Types§
Source§impl Replace for Option<char>
impl Replace for Option<char>
None
: just remove the character, don’t replace it.
Some
: replace the character with this character.