Struct arithmetic_parser::grammars::WithMockedTypes
source · pub struct WithMockedTypes<T, Ty>(/* private fields */);
Expand description
Trait Implementations§
source§impl<T: ParseLiteral, Ty: MockTypes> Grammar for WithMockedTypes<T, Ty>
impl<T: ParseLiteral, Ty: MockTypes> Grammar for WithMockedTypes<T, Ty>
source§impl<T: ParseLiteral, Ty: MockTypes> Parse for WithMockedTypes<T, Ty>
impl<T: ParseLiteral, Ty: MockTypes> Parse for WithMockedTypes<T, Ty>
§type Base = WithMockedTypes<T, Ty>
type Base = WithMockedTypes<T, Ty>
Base for the grammar providing the literal and type annotation parsers.
source§fn parse_statements<'a, I>(input: I) -> Result<Block<'a, Self::Base>, Error>where
I: IntoInputSpan<'a>,
Self: Sized,
fn parse_statements<'a, I>(input: I) -> Result<Block<'a, Self::Base>, Error>where
I: IntoInputSpan<'a>,
Self: Sized,
Parses a list of statements.
source§fn parse_streaming_statements<'a, I>(
input: I,
) -> Result<Block<'a, Self::Base>, Error>where
I: IntoInputSpan<'a>,
Self: Sized,
fn parse_streaming_statements<'a, I>(
input: I,
) -> Result<Block<'a, Self::Base>, Error>where
I: IntoInputSpan<'a>,
Self: Sized,
Parses a potentially incomplete list of statements.
source§impl<T: ParseLiteral, Ty: MockTypes> ParseLiteral for WithMockedTypes<T, Ty>
impl<T: ParseLiteral, Ty: MockTypes> ParseLiteral for WithMockedTypes<T, Ty>
Auto Trait Implementations§
impl<T, Ty> Freeze for WithMockedTypes<T, Ty>
impl<T, Ty> RefUnwindSafe for WithMockedTypes<T, Ty>where
T: RefUnwindSafe,
Ty: RefUnwindSafe,
impl<T, Ty> Send for WithMockedTypes<T, Ty>
impl<T, Ty> Sync for WithMockedTypes<T, Ty>
impl<T, Ty> Unpin for WithMockedTypes<T, Ty>
impl<T, Ty> UnwindSafe for WithMockedTypes<T, Ty>where
T: UnwindSafe,
Ty: 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