Function cuicui_chirp::parse_dsl::args::quoted
source · pub fn quoted<'a>(
_: &TypeRegistry,
_: Option<&mut LoadContext<'_>>,
input: &'a str
) -> Result<Cow<'a, str>, Infallible>
Expand description
Returns the input as a &str
, removing quotes applying backslash escapes.
This allocates whenever a backslash is used in the input string.
Other parsers
Errors
This is always Ok
. It is safe to unwrap. Rust guarentees that Infallible
can’t be constructed.