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

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

StrangeInc(usize)
StrangeDec(usize)

Trait Implementations

impl ParsingImpl for TestParsingImpl[src]

impl Clone for TestParsingImpl[src]

impl Copy for TestParsingImpl[src]

impl Eq for TestParsingImpl[src]

impl PartialEq<TestParsingImpl> for TestParsingImpl[src]

impl Debug for TestParsingImpl[src]

impl Hash for TestParsingImpl[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]