pub struct EscapedStr { /* private fields */ }Expand description
A string with backslash escapes in it
This wrapper allows referencing escaped strings in the source while preventing improper use. Use EscapedStr::as_raw_str to access the underlying buffer, or the Display trait to get owned versions. Use EscapedStr::unescape to access a char iter.
Implementations§
Source§impl EscapedStr
impl EscapedStr
Trait Implementations§
Source§impl Debug for EscapedStr
impl Debug for EscapedStr
Source§impl Display for EscapedStr
impl Display for EscapedStr
Source§impl Ord for EscapedStr
impl Ord for EscapedStr
Source§impl PartialEq for EscapedStr
impl PartialEq for EscapedStr
Source§fn eq(&self, other: &EscapedStr) -> bool
fn eq(&self, other: &EscapedStr) -> bool
Tests for
self and other values to be equal, and is used by ==.