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

Access the underly buffer with escape sequences in it

Get an iterator over the true characters

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
This method returns an Ordering between self and other. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Converts the given value to a String. Read more