Trait char_fns::CharFns
[−]
[src]
pub trait CharFns { fn char_len(&self) -> usize; fn char_split(&self, index: usize) -> (&str, &str); fn char_replace(&self, index: usize, len: usize, text: &str) -> String; }
Provides methods for unicode character-indexed string manipulation.
Required Methods
fn char_len(&self) -> usize
Returns the number of unicode characters in the string.
fn char_split(&self, index: usize) -> (&str, &str)
Splits the string at the unicode character index.
fn char_replace(&self, index: usize, len: usize, text: &str) -> String
Replaces a range of unicode characters with a new substring.
Implementors
impl CharFns for str