Trait syn::parse::Parse

source ·
pub trait Parse: Sized {
    fn parse(input: ParseStream<'_>) -> Result<Self>;
}
Expand description

Parsing interface implemented by all types that can be parsed in a default way from a token stream.

Refer to the module documentation for details about implementing and using the Parse trait.

Required Methods§

Implementations on Foreign Types§

Implementors§

impl Parse for StopParse

impl<P: Parse> Parse for Braces<P>

impl<P: Parse> Parse for Brackets<P>

impl<P: Parse> Parse for Parens<P>

impl<P: Parse, T: Parse + Token> Parse for PunctuatedInner<P, T, Trailing>

impl<P: Parse, T: Parse> Parse for PunctuatedInner<P, T, NoTrailing>

impl Parse for Meta