pub struct Exponentiation<S = (), C = (), Lang: ?Sized = ()> { /* private fields */ }Expand description
The ** punctuator
Implementations§
Source§impl Exponentiation
impl Exponentiation
Sourcepub fn try_parse<'inp, L, Ctx, Lang: ?Sized, Cmpl>(
inp: &mut InputRef<'inp, '_, L, Ctx, Lang, Cmpl>,
) -> Result<ParseAttempt<Exponentiation<L::Span, (), Lang>>, <Ctx::Emitter as Emitter<'inp, L, Lang>>::Error>where
L: Lexer<'inp>,
L::Token: PunctuatorToken<'inp>,
Ctx: ParseContext<'inp, L, Lang>,
Cmpl: SurfaceIncomplete<'inp, L, Ctx, Lang>,
<Ctx::Emitter as Emitter<'inp, L, Lang>>::Error: From<UnexpectedEot<L::Offset, Lang>>,
Available on crate feature punct only.
pub fn try_parse<'inp, L, Ctx, Lang: ?Sized, Cmpl>(
inp: &mut InputRef<'inp, '_, L, Ctx, Lang, Cmpl>,
) -> Result<ParseAttempt<Exponentiation<L::Span, (), Lang>>, <Ctx::Emitter as Emitter<'inp, L, Lang>>::Error>where
L: Lexer<'inp>,
L::Token: PunctuatorToken<'inp>,
Ctx: ParseContext<'inp, L, Lang>,
Cmpl: SurfaceIncomplete<'inp, L, Ctx, Lang>,
<Ctx::Emitter as Emitter<'inp, L, Lang>>::Error: From<UnexpectedEot<L::Offset, Lang>>,
punct only.A parser that parses a token and returns a Exponentiation instance if it matches.
If the function returns Ok(ParseAttempt::Decline), it means the next token does not match,
and promises no valid token is consumed; a terminal scanner stop is an error, never a
Decline.
Lang is read off the input, so an unbranded grammar writes the same call as a
branded one.
Sourcepub fn parse<'inp, L, Ctx, Lang, Cmpl>(
inp: &mut InputRef<'inp, '_, L, Ctx, Lang, Cmpl>,
) -> Result<Exponentiation<L::Span, (), Lang>, <Ctx::Emitter as Emitter<'inp, L, Lang>>::Error>where
L: Lexer<'inp>,
L::Token: PunctuatorToken<'inp>,
Ctx: ParseContext<'inp, L, Lang>,
Cmpl: SurfaceIncomplete<'inp, L, Ctx, Lang>,
<Ctx::Emitter as Emitter<'inp, L, Lang>>::Error: From<UnexpectedEot<L::Offset, Lang>> + From<UnexpectedToken<'inp, L::Token, <L::Token as Token<'inp>>::Kind, L::Span, Lang>>,
Lang: ?Sized,
Available on crate feature punct only.
pub fn parse<'inp, L, Ctx, Lang, Cmpl>(
inp: &mut InputRef<'inp, '_, L, Ctx, Lang, Cmpl>,
) -> Result<Exponentiation<L::Span, (), Lang>, <Ctx::Emitter as Emitter<'inp, L, Lang>>::Error>where
L: Lexer<'inp>,
L::Token: PunctuatorToken<'inp>,
Ctx: ParseContext<'inp, L, Lang>,
Cmpl: SurfaceIncomplete<'inp, L, Ctx, Lang>,
<Ctx::Emitter as Emitter<'inp, L, Lang>>::Error: From<UnexpectedEot<L::Offset, Lang>> + From<UnexpectedToken<'inp, L::Token, <L::Token as Token<'inp>>::Kind, L::Span, Lang>>,
Lang: ?Sized,
punct only.A parser that parses a token and returns a Exponentiation instance if it matches.
Lang is read off the input, so an unbranded grammar writes the same call as a
branded one.
Source§impl Exponentiation<()>
impl Exponentiation<()>
Source§impl<S> Exponentiation<S>
impl<S> Exponentiation<S>
Source§impl<S, C> Exponentiation<S, C>
impl<S, C> Exponentiation<S, C>
Sourcepub const fn with_content(span: S, content: C) -> Self
pub const fn with_content(span: S, content: C) -> Self
Creates a new ** punctuator with the given span and content.
Source§impl<S, C, Lang: ?Sized> Exponentiation<S, C, Lang>
impl<S, C, Lang: ?Sized> Exponentiation<S, C, Lang>
Sourcepub fn change_language<N: ?Sized>(self) -> Exponentiation<S, C, N>
pub fn change_language<N: ?Sized>(self) -> Exponentiation<S, C, N>
Changes the language type of the ** punctuator.
Sourcepub const fn change_language_const<N: ?Sized>(self) -> Exponentiation<S, C, N>
pub const fn change_language_const<N: ?Sized>(self) -> Exponentiation<S, C, N>
Changes the language type of the ** punctuator.
Trait Implementations§
Source§impl<S, C, Lang: ?Sized> AsSpan<S> for Exponentiation<S, C, Lang>
impl<S, C, Lang: ?Sized> AsSpan<S> for Exponentiation<S, C, Lang>
Source§impl<'inp, T, S, C, Lang> Check<T> for Exponentiation<S, C, Lang>
impl<'inp, T, S, C, Lang> Check<T> for Exponentiation<S, C, Lang>
impl<S: Copy, C: Copy, Lang: Copy + ?Sized> Copy for Exponentiation<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> Display for Exponentiation<S, C, Lang>
impl<S, C, Lang: ?Sized> Display for Exponentiation<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> DisplayCompact for Exponentiation<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayCompact for Exponentiation<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> DisplayHuman for Exponentiation<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayHuman for Exponentiation<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> DisplayPretty for Exponentiation<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayPretty for Exponentiation<S, C, Lang>
impl<S: Eq, C: Eq, Lang: Eq + ?Sized> Eq for Exponentiation<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> IntoComponents for Exponentiation<S, C, Lang>
impl<S, C, Lang: ?Sized> IntoComponents for Exponentiation<S, C, Lang>
Source§type Components = (S, C)
type Components = (S, C)
The tuple or struct type containing the decomposed components. Read more
Source§fn into_components(self) -> Self::Components
fn into_components(self) -> Self::Components
Consumes this element and returns its constituent components. Read more
Source§impl<S, C, Lang: ?Sized> IntoSpan<S> for Exponentiation<S, C, Lang>
impl<S, C, Lang: ?Sized> IntoSpan<S> for Exponentiation<S, C, Lang>
Source§impl<S: PartialEq, C: PartialEq, Lang: PartialEq + ?Sized> PartialEq for Exponentiation<S, C, Lang>
impl<S: PartialEq, C: PartialEq, Lang: PartialEq + ?Sized> PartialEq for Exponentiation<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> PartialOrd<Exponentiation<S, C, Lang>> for str
impl<S, C, Lang: ?Sized> PartialOrd<Exponentiation<S, C, Lang>> for str
Source§impl<S, C, Lang: ?Sized> PartialOrd<str> for Exponentiation<S, C, Lang>
impl<S, C, Lang: ?Sized> PartialOrd<str> for Exponentiation<S, C, Lang>
Source§impl<'inp, L, S, C, Lang: ?Sized> Punctuator<'inp, L, Lang> for Exponentiation<S, C, Lang>
impl<'inp, L, S, C, Lang: ?Sized> Punctuator<'inp, L, Lang> for Exponentiation<S, C, Lang>
impl<S: PartialEq, C: PartialEq, Lang: PartialEq + ?Sized> StructuralPartialEq for Exponentiation<S, C, Lang>
Auto Trait Implementations§
impl<S, C, Lang> Forget for Exponentiation<S, C, Lang>where
Lang: ?Sized,
impl<S, C, Lang> Freeze for Exponentiation<S, C, Lang>
impl<S, C, Lang> Move for Exponentiation<S, C, Lang>where
Lang: ?Sized,
impl<S, C, Lang> RefUnwindSafe for Exponentiation<S, C, Lang>
impl<S, C, Lang> Send for Exponentiation<S, C, Lang>
impl<S, C, Lang> Sync for Exponentiation<S, C, Lang>
impl<S, C, Lang> Unpin for Exponentiation<S, C, Lang>
impl<S, C, Lang> UnsafeUnpin for Exponentiation<S, C, Lang>
impl<S, C, Lang> UnwindSafe for Exponentiation<S, C, Lang>
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