pub trait Peek {
// Required method
fn peek(p: &mut Peeker<'_>) -> bool;
}
Expand description
Implemented by tokens that can be peeked for.
Required Methods§
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§
Implementors§
impl Peek for BinOp
impl Peek for Expr
impl Peek for ItemOrExpr
impl Peek for ItemUseSegment
impl Peek for Pat
impl Peek for PathSegment
impl Peek for Stmt
impl Peek for Abstract
impl Peek for AlignOf
impl Peek for Amp
impl Peek for AmpAmp
impl Peek for AmpEq
impl Peek for Arrow
impl Peek for As
impl Peek for Async
impl Peek for At
impl Peek for Attribute
impl Peek for Await
impl Peek for Bang
impl Peek for BangEq
impl Peek for Become
impl Peek for Break
impl Peek for Caret
impl Peek for CaretEq
impl Peek for CloseBrace
impl Peek for CloseBracket
impl Peek for CloseEmpty
impl Peek for CloseParen
impl Peek for Colon
impl Peek for ColonColon
impl Peek for Comma
impl Peek for Const
impl Peek for Continue
impl Peek for Crate
impl Peek for Dash
impl Peek for DashEq
impl Peek for Default
impl Peek for Div
impl Peek for Do
impl Peek for Dollar
impl Peek for Dot
impl Peek for DotDot
impl Peek for DotDotEq
impl Peek for Else
impl Peek for Enum
impl Peek for Eq
impl Peek for EqEq
impl Peek for ExprElse
impl Peek for ExprElseIf
impl Peek for ExprObject
impl Peek for Extern
impl Peek for False
impl Peek for Final
impl Peek for Fn
impl Peek for For
impl Peek for Gt
impl Peek for GtEq
impl Peek for GtGt
impl Peek for GtGtEq
impl Peek for Ident
impl Peek for If
impl Peek for Impl
impl Peek for In
impl Peek for Is
impl Peek for ItemFn
impl Peek for ItemInlineBody
impl Peek for Label
impl Peek for Let
impl Peek for LitBool
impl Peek for Loop
impl Peek for Lt
impl Peek for LtEq
impl Peek for LtLt
impl Peek for LtLtEq
impl Peek for Macro
impl Peek for Match
impl Peek for Mod
impl Peek for Move
impl Peek for Mut
impl Peek for Not
impl Peek for OffsetOf
impl Peek for OpenBrace
impl Peek for OpenBracket
impl Peek for OpenEmpty
impl Peek for OpenParen
impl Peek for Override
impl Peek for Path
impl Peek for PathSegmentExpr
impl Peek for Perc
impl Peek for PercEq
impl Peek for Pipe
impl Peek for PipeEq
impl Peek for PipePipe
impl Peek for Plus
impl Peek for PlusEq
impl Peek for Pound
impl Peek for Priv
impl Peek for Proc
impl Peek for Pub
impl Peek for Pure
impl Peek for QuestionMark
impl Peek for Ref
impl Peek for Return
impl Peek for Rocket
impl Peek for Select
impl Peek for SelfType
impl Peek for SelfValue
impl Peek for SemiColon
impl Peek for Shebang
impl Peek for SizeOf
impl Peek for SlashEq
impl Peek for Star
impl Peek for StarEq
impl Peek for Static
impl Peek for Struct
impl Peek for Super
impl Peek for Tilde
impl Peek for Token
impl Peek for True
impl Peek for TypeOf
impl Peek for Underscore
impl Peek for Unsafe
impl Peek for Use
impl Peek for Virtual
impl Peek for While
impl Peek for Yield
impl Peek for FormatArgs
impl<T> Peek for Box<T>where
T: Peek,
Peek implementation for something that is boxed.