Enum quoted_string::test_utils::TestParsingImpl[][src]

pub enum TestParsingImpl {
    StrangeInc(usize),
    StrangeDec(usize),
}

a parsing implementations which allows non semantic stange thinks in it for testing purpose

basically you can have a non-semantic section starting with ending with which has a number of + followed by the same number of -.

E.g. "some think \n+++---\n"

This naturally makes no sense, but is a simple way to test if the custom state is used correctly, there are some quoted string impl which need custom state as they can e.g. have non semantic soft line brakes (which are slight more complex to implement and less visible in error messages, so I used this think here)

Variants

Trait Implementations

impl Copy for TestParsingImpl
[src]

impl Clone for TestParsingImpl
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for TestParsingImpl
[src]

impl PartialEq for TestParsingImpl
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for TestParsingImpl
[src]

Formats the value using the given formatter. Read more

impl Hash for TestParsingImpl
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl ParsingImpl for TestParsingImpl
[src]

Auto Trait Implementations