rune::parse

Trait Peek

Source
pub trait Peek {
    // Required method
    fn peek(p: &mut Peeker<'_>) -> bool;
}
Expand description

Implemented by tokens that can be peeked for.

Required Methods§

Source

fn peek(p: &mut Peeker<'_>) -> bool

Peek the parser for the given token.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<A, B> Peek for (A, B)
where A: Parse + Peek, B: Parse,

Source§

fn peek(p: &mut Peeker<'_>) -> bool

Implementors§

Source§

impl Peek for BinOp

Source§

impl Peek for Expr

Source§

impl Peek for ItemOrExpr

Source§

impl Peek for ItemUseSegment

Source§

impl Peek for Pat

Source§

impl Peek for PathSegment

Source§

impl Peek for Stmt

Source§

impl Peek for Abstract

Source§

impl Peek for AlignOf

Source§

impl Peek for Amp

Source§

impl Peek for AmpAmp

Source§

impl Peek for AmpEq

Source§

impl Peek for Arrow

Source§

impl Peek for As

Source§

impl Peek for Async

Source§

impl Peek for At

Source§

impl Peek for Attribute

Source§

impl Peek for Await

Source§

impl Peek for Bang

Source§

impl Peek for BangEq

Source§

impl Peek for Become

Source§

impl Peek for Break

Source§

impl Peek for Caret

Source§

impl Peek for CaretEq

Source§

impl Peek for CloseBrace

Source§

impl Peek for CloseBracket

Source§

impl Peek for CloseEmpty

Source§

impl Peek for CloseParen

Source§

impl Peek for Colon

Source§

impl Peek for ColonColon

Source§

impl Peek for Comma

Source§

impl Peek for Const

Source§

impl Peek for Continue

Source§

impl Peek for Crate

Source§

impl Peek for Dash

Source§

impl Peek for DashEq

Source§

impl Peek for Default

Source§

impl Peek for Div

Source§

impl Peek for Do

Source§

impl Peek for Dollar

Source§

impl Peek for Dot

Source§

impl Peek for DotDot

Source§

impl Peek for DotDotEq

Source§

impl Peek for Else

Source§

impl Peek for Enum

Source§

impl Peek for Eq

Source§

impl Peek for EqEq

Source§

impl Peek for ExprElse

Source§

impl Peek for ExprElseIf

Source§

impl Peek for ExprObject

Source§

impl Peek for Extern

Source§

impl Peek for False

Source§

impl Peek for Final

Source§

impl Peek for Fn

Source§

impl Peek for For

Source§

impl Peek for Gt

Source§

impl Peek for GtEq

Source§

impl Peek for GtGt

Source§

impl Peek for GtGtEq

Source§

impl Peek for Ident

Source§

impl Peek for If

Source§

impl Peek for Impl

Source§

impl Peek for In

Source§

impl Peek for Is

Source§

impl Peek for ItemFn

Source§

impl Peek for ItemInlineBody

Source§

impl Peek for Label

Source§

impl Peek for Let

Source§

impl Peek for LitBool

Source§

impl Peek for Loop

Source§

impl Peek for Lt

Source§

impl Peek for LtEq

Source§

impl Peek for LtLt

Source§

impl Peek for LtLtEq

Source§

impl Peek for Macro

Source§

impl Peek for Match

Source§

impl Peek for Mod

Source§

impl Peek for Move

Source§

impl Peek for Mut

Source§

impl Peek for Not

Source§

impl Peek for OffsetOf

Source§

impl Peek for OpenBrace

Source§

impl Peek for OpenBracket

Source§

impl Peek for OpenEmpty

Source§

impl Peek for OpenParen

Source§

impl Peek for Override

Source§

impl Peek for Path

Source§

impl Peek for PathSegmentExpr

Source§

impl Peek for Perc

Source§

impl Peek for PercEq

Source§

impl Peek for Pipe

Source§

impl Peek for PipeEq

Source§

impl Peek for PipePipe

Source§

impl Peek for Plus

Source§

impl Peek for PlusEq

Source§

impl Peek for Pound

Source§

impl Peek for Priv

Source§

impl Peek for Proc

Source§

impl Peek for Pub

Source§

impl Peek for Pure

Source§

impl Peek for QuestionMark

Source§

impl Peek for Ref

Source§

impl Peek for Return

Source§

impl Peek for Rocket

Source§

impl Peek for Select

Source§

impl Peek for SelfType

Source§

impl Peek for SelfValue

Source§

impl Peek for SemiColon

Source§

impl Peek for Shebang

Source§

impl Peek for SizeOf

Source§

impl Peek for SlashEq

Source§

impl Peek for Star

Source§

impl Peek for StarEq

Source§

impl Peek for Static

Source§

impl Peek for Struct

Source§

impl Peek for Super

Source§

impl Peek for Tilde

Source§

impl Peek for Token

Source§

impl Peek for True

Source§

impl Peek for TypeOf

Source§

impl Peek for Underscore

Source§

impl Peek for Unsafe

Source§

impl Peek for Use

Source§

impl Peek for Virtual

Source§

impl Peek for While

Source§

impl Peek for Yield

Source§

impl Peek for FormatArgs

Source§

impl<T> Peek for Box<T>
where T: Peek,

Peek implementation for something that is boxed.

Source§

impl<T, S> Peek for AngleBracketed<T, S>

Source§

impl<T, S> Peek for Braced<T, S>

Source§

impl<T, S> Peek for Bracketed<T, S>

Source§

impl<T, S> Peek for Parenthesized<T, S>