Enum syntax::ext::tt::macro_parser::ParseResult[][src]

pub enum ParseResult<T> {
    Success(T),
    Failure(SpanToken),
    Error(SpanString),
}

Represents the possible results of an attempted parse.

Variants

Parsed successfully.

Arm failed to match. If the second parameter is token::Eof, it indicates an unexpected end of macro invocation. Otherwise, it indicates that no rules expected the given token.

Fatal error (malformed macro?). Abort compilation.

Auto Trait Implementations

impl<T> !Send for ParseResult<T>

impl<T> !Sync for ParseResult<T>