pub struct QuotedStringParser;
Expand description

Parser for text that meets the “quoted-string” grammar.

 use quoted_string_parser::{QuotedStringParser, QuotedStringParseLevel};

 // two qdtexts separated by a whitespace
 assert!(QuotedStringParser::validate(
   QuotedStringParseLevel::QuotedString, "\"Hello world\""));

 // one quoted-pair
 assert!(QuotedStringParser::validate(
   QuotedStringParseLevel::QuotedString, "\"\\\u{7f}\""));

QuotedStringParser derives from Parser, if you need more control over the parser itself you can use any of the operations defined in the pest crate. Check the documentation for more information.

Implementations

Validate that the input meets the grammar

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.