ForRoute

trait ForRoute[A]
class Object
trait Matchable
class Any
class Route[A]

Value members

Inherited constructors

def this(pattern: Pattern, parseFn: Matcher => Option[A], buildFn: A => Path)
Inherited from
Route

Concrete methods

inline def caseClass[B <: Product](using m: ProductOf[B]): Route[B]

Maps the captures values of the route to a case class.

Maps the captures values of the route to a case class.

inline def caseClassDebug[B <: Product](using m: ProductOf[B]): Route[B]

Same as caseClass except the code generated by the macro is printed to stdout.

Same as caseClass except the code generated by the macro is printed to stdout.

Inherited methods

final def const[B](b: B)(implicit ev: ValueOf[A]): R[B]
Inherited from
RouteCommon
final def filter(f: A => Boolean): R[A]
Inherited from
RouteCommon
final def mapInput[B >: A](f: B => A): R[B]
Inherited from
RouteCommon
final def mapParsed[B <: A](f: A => B): R[B]
Inherited from
RouteCommon
def parse(path: Path): Option[A]
Inherited from
Route
override def parseThen(f: Option[A] => Option[A]): Route[A]
Definition Classes
Inherited from
Route
def pathFor(a: A): Path
Inherited from
Route
override def pmap[B](b: A => Option[B])(a: B => A): Route[B]
Definition Classes
Inherited from
Route
override def toString: String
Definition Classes
Route -> Any
Inherited from
Route
final def xmap[B](b: A => B)(a: B => A): R[B]

Exponential map.

Exponential map.

Any A can be turned into a B and vice versa.

Inherited from
RouteCommon