cast<R> method

Parser<R> cast<R>()

Returns a parser that casts itself to Parser<R>.

Implementation

Parser<R> cast<R>() => CastParser<T, R>(this);