Enum konst::parsing::ParseDirection
source · 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
source§fn eq(&self, other: &ParseDirection) -> bool
fn eq(&self, other: &ParseDirection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)