# Peek in syn::parse - Rust
Types that can be parsed by looking at just one token.

syn::parse

# Trait Peek

Source

    pub trait Peek: Sealed { }

Expand description

Types that can be parsed by looking at just one token.

Use `ParseStream::peek` to peek one of these types in a parse stream without consuming it from the stream.

This trait is sealed and cannot be implemented for types outside of Syn.

## 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.

## Implementors§

Source §

### impl Peek for End

Source §

### impl<F: Copy + FnOnce(TokenMarker) -> T, T: Token> Peek for F