Trait scan_rules::scanner::util::StrUtil
[−]
[src]
pub trait StrUtil {
fn subslice_offset(&self, inner: &Self) -> Option<usize>;
fn split_escape_default(&self) -> Result<(char, &Self), EscapeError>;
}Various string utility methods.
Required Methods
fn subslice_offset(&self, inner: &Self) -> Option<usize>
Returns the byte offset of an inner slice relative to an enclosing outer slice.
fn split_escape_default(&self) -> Result<(char, &Self), EscapeError>
Extracts an escape sequence (sans leading backslash) from the start of this string, returning the unescaped code point, and the unconsumed input.
Implementors
impl StrUtil for str