pub struct PU<P> { /* private fields */ }
Expand description
a type which implemented ParseUnit<S>
with source code it selected
Implementations§
Trait Implementations§
Source§impl<S, P> ParseUnit<S> for PU<P>
impl<S, P> ParseUnit<S> for PU<P>
Source§fn parse(p: &mut Parser<S>) -> Result<Self::Target, ParseError>
fn parse(p: &mut Parser<S>) -> Result<Self::Target, ParseError>
you should not call
ParseUnit::parse
directly, using methods like Parser::once
insteadimpl<P> Copy for PU<P>where
P: Copy,
Auto Trait Implementations§
impl<P> Freeze for PU<P>where
P: Freeze,
impl<P> RefUnwindSafe for PU<P>where
P: RefUnwindSafe,
impl<P> Send for PU<P>where
P: Send,
impl<P> Sync for PU<P>where
P: Sync,
impl<P> Unpin for PU<P>where
P: Unpin,
impl<P> UnwindSafe for PU<P>where
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<W> WithSpanExt for Wwhere
W: WithSpan,
impl<W> WithSpanExt for Wwhere
W: WithSpan,
Source§fn make_parse_error(
&self,
reason: impl ToString,
kind: ParseErrorKind,
) -> ParseError
fn make_parse_error( &self, reason: impl ToString, kind: ParseErrorKind, ) -> ParseError
make an
ParseError
at location with ordered ParseErrorKind
Source§fn unmatch<T>(&self, reason: impl ToString) -> Result<T, ParseError>
fn unmatch<T>(&self, reason: impl ToString) -> Result<T, ParseError>
make an Unmatched
ParseError
in Result
Source§fn throw<T>(&self, reason: impl ToString) -> Result<T, ParseError>
fn throw<T>(&self, reason: impl ToString) -> Result<T, ParseError>
make an Semantic
ParseError
in Result