pub trait Unquote {
// Required method
fn write_unquoted<W: Write>(&self, w: &mut W) -> Result<bool, Error>;
// Provided method
fn unquote(&self) -> (String, bool) { ... }
}
Expand description
Removing quotes from syntax without performing expansion.
This trail will be useful only in a limited number of use cases. In the normal word expansion process, quote removal is done after other kinds of expansions like parameter expansion, so this trait is not used.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Implementors§
impl Unquote for BackquoteUnit
impl Unquote for EscapeUnit
Converts an escape unit into the string represented by the escape sequence.
Produces an empty string if the escape unit does not represent a valid Unicode scalar value.
impl Unquote for TextUnit
impl Unquote for WordUnit
impl Unquote for BracedParam
impl Unquote for EscapedString
Converts an escaped string into the string represented by the escape sequences.
Escape units that do not represent valid Unicode scalar values are ignored.