Struct gambit_parser::EscapedStr
source · [−]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
Trait Implementations
sourceimpl Debug for EscapedStr
impl Debug for EscapedStr
sourceimpl Display for EscapedStr
impl Display for EscapedStr
sourceimpl Ord for EscapedStr
impl Ord for EscapedStr
sourceimpl PartialEq<EscapedStr> for EscapedStr
impl PartialEq<EscapedStr> for EscapedStr
sourcefn eq(&self, other: &EscapedStr) -> bool
fn eq(&self, other: &EscapedStr) -> bool
sourceimpl PartialOrd<EscapedStr> for EscapedStr
impl PartialOrd<EscapedStr> for EscapedStr
sourcefn partial_cmp(&self, other: &EscapedStr) -> Option<Ordering>
fn partial_cmp(&self, other: &EscapedStr) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more