pub enum TestParsingImpl {
StrangeInc(usize),
StrangeDec(usize),
}
Expand description
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§
Source§impl Clone for TestParsingImpl
impl Clone for TestParsingImpl
Source§fn clone(&self) -> TestParsingImpl
fn clone(&self) -> TestParsingImpl
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TestParsingImpl
impl Debug for TestParsingImpl
Source§impl Hash for TestParsingImpl
impl Hash for TestParsingImpl
Source§impl ParsingImpl for TestParsingImpl
impl ParsingImpl for TestParsingImpl
fn can_be_quoted(bch: PartialCodePoint) -> bool
fn handle_normal_state( bch: PartialCodePoint, ) -> Result<(State<Self>, bool), CoreError>
fn advance( &self, pcp: PartialCodePoint, ) -> Result<(State<Self>, bool), CoreError>
Source§impl PartialEq for TestParsingImpl
impl PartialEq for TestParsingImpl
impl Copy for TestParsingImpl
impl Eq for TestParsingImpl
impl StructuralPartialEq for TestParsingImpl
Auto Trait Implementations§
impl Freeze for TestParsingImpl
impl RefUnwindSafe for TestParsingImpl
impl Send for TestParsingImpl
impl Sync for TestParsingImpl
impl Unpin for TestParsingImpl
impl UnwindSafe for TestParsingImpl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more