pub struct Span<I, P>(pub I, pub P);Expand description
This input type keeps track of the position within the input it wraps.
Tuple Fields§
§0: I§1: PImplementations§
Trait Implementations§
Source§impl<I: SplitFirst + Clone, P: Position<I>, E> ConsumeError<Span<I, P>> for PositionedError<P, E>where
E: ConsumeError<I>,
impl<I: SplitFirst + Clone, P: Position<I>, E> ConsumeError<Span<I, P>> for PositionedError<P, E>where
E: ConsumeError<I>,
Source§impl<I, P: Position<I>, E: NotError<O, I>, O> NotError<O, Span<I, P>> for PositionedError<P, E>
impl<I, P: Position<I>, E: NotError<O, I>, O> NotError<O, Span<I, P>> for PositionedError<P, E>
Source§impl<I: Recordable, P> Recordable for Span<I, P>
impl<I: Recordable, P> Recordable for Span<I, P>
Source§impl<I: Clone + SplitFirst, P: Position<I>> SplitFirst for Span<I, P>
impl<I: Clone + SplitFirst, P: Position<I>> SplitFirst for Span<I, P>
type Element = <I as SplitFirst>::Element
fn split_first(self) -> Option<(Self::Element, Self)>
Source§impl<'a, I, P: Position<I>, E, T: ?Sized> TagError<'a, T, Span<I, P>> for PositionedError<P, E>where
E: TagError<'a, T, I>,
impl<'a, I, P: Position<I>, E, T: ?Sized> TagError<'a, T, Span<I, P>> for PositionedError<P, E>where
E: TagError<'a, T, I>,
impl<I: Copy, P: Copy> Copy for Span<I, P>
impl<I: Eq, P: Eq> Eq for Span<I, P>
impl<I, P> StructuralPartialEq for Span<I, P>
Auto Trait Implementations§
impl<I, P> Freeze for Span<I, P>
impl<I, P> RefUnwindSafe for Span<I, P>where
I: RefUnwindSafe,
P: RefUnwindSafe,
impl<I, P> Send for Span<I, P>
impl<I, P> Sync for Span<I, P>
impl<I, P> Unpin for Span<I, P>
impl<I, P> UnwindSafe for Span<I, P>where
I: UnwindSafe,
P: UnwindSafe,
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