pub enum ParseTypeContext<'a> {
Single {
input: &'a BStr,
label: &'static str,
},
Alternatives {
input: &'a BStr,
labels: Vec<&'static str>,
},
}
Expand description
Used inside Error
to store the names of the items that were being parsed.
Variants§
Trait Implementations§
Source§impl<'a> Clone for ParseTypeContext<'a>
impl<'a> Clone for ParseTypeContext<'a>
Source§fn clone(&self) -> ParseTypeContext<'a>
fn clone(&self) -> ParseTypeContext<'a>
Returns a duplicate 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<'a> Debug for ParseTypeContext<'a>
impl<'a> Debug for ParseTypeContext<'a>
Source§impl<'a> PartialEq for ParseTypeContext<'a>
impl<'a> PartialEq for ParseTypeContext<'a>
impl<'a> Eq for ParseTypeContext<'a>
impl<'a> StructuralPartialEq for ParseTypeContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParseTypeContext<'a>
impl<'a> RefUnwindSafe for ParseTypeContext<'a>
impl<'a> Send for ParseTypeContext<'a>
impl<'a> Sync for ParseTypeContext<'a>
impl<'a> Unpin for ParseTypeContext<'a>
impl<'a> UnwindSafe for ParseTypeContext<'a>
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