pub enum ParseDirection {
FromStart = 0,
FromEnd = 1,
FromBoth = 2,
}
Expand description
The direction that a parser was parsing from when an error happened.
Variants§
FromStart = 0
Parsing was attempted from the start of the string
FromEnd = 1
Parsing was attempted from the end of the string
FromBoth = 2
Parsing was attempted from both the start and end of the string
Trait Implementations§
Source§impl Clone for ParseDirection
impl Clone for ParseDirection
Source§fn clone(&self) -> ParseDirection
fn clone(&self) -> ParseDirection
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 ParseDirection
impl Debug for ParseDirection
Source§impl PartialEq for ParseDirection
impl PartialEq for ParseDirection
impl Copy for ParseDirection
impl Eq for ParseDirection
impl StructuralPartialEq for ParseDirection
Auto Trait Implementations§
impl Freeze for ParseDirection
impl RefUnwindSafe for ParseDirection
impl Send for ParseDirection
impl Sync for ParseDirection
impl Unpin for ParseDirection
impl UnwindSafe for ParseDirection
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