pub struct ParserIn<'a> {
pub whole_file: &'a [u8],
pub remaining: &'a [u8],
}Fields§
§whole_file: &'a [u8]§remaining: &'a [u8]Trait Implementations§
Source§impl<'a> ParseError<ParserIn<'a>> for Error<&[u8]>
impl<'a> ParseError<ParserIn<'a>> for Error<&[u8]>
Source§fn append(_input: ParserIn<'a>, _kind: ErrorKind, other: Self) -> Self
fn append(_input: ParserIn<'a>, _kind: ErrorKind, other: Self) -> Self
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
Source§fn from_error_kind(_input: ParserIn<'a>, kind: ErrorKind) -> Self
fn from_error_kind(_input: ParserIn<'a>, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
impl<'a> Copy for ParserIn<'a>
impl<'a> StructuralPartialEq for ParserIn<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParserIn<'a>
impl<'a> RefUnwindSafe for ParserIn<'a>
impl<'a> Send for ParserIn<'a>
impl<'a> Sync for ParserIn<'a>
impl<'a> Unpin for ParserIn<'a>
impl<'a> UnwindSafe for ParserIn<'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