pub trait SplitFirstChar: Deref<Target = str> {
    // Provided method
    fn split_first_char(&self) -> Option<(char, &str)> { ... }
}
Expand description

Convenient trait to call split_first_char as a method.

Provided Methods§

source

fn split_first_char(&self) -> Option<(char, &str)>

Split a string into a pair of first character and the rest.

Implementors§

source§

impl<Str: Deref<Target = str>> SplitFirstChar for Str