FragmentImpl

trait FragmentImpl[E]

This is the analogue of PathSegmentImpl for the Fragment trait. It "pre-applies" the error type based on the provided FragmentMatchingError.

Type parameters:
E

type of the "pre-applied" errors

Companion:
object
class Object
trait Matchable
class Any
class AllImpl[P, Q, F]

Value members

Concrete methods

final def emptyFragment: Fragment[Unit, E]

Returns a Fragment imposing that the URL does not contain any fragment.

Returns a Fragment imposing that the URL does not contain any fragment.

Note that a URL ending with "#" is considered having no fragment.

final def fragment[T](implicit fromString: FromString[T, E], printer: Printer[T]): Fragment[T, E]

Returns a Fragment matching an element of type T. If the fragment is missing, it fails with a missing fragment error.

Returns a Fragment matching an element of type T. If the fragment is missing, it fails with a missing fragment error.

final def maybeFragment[T](implicit fromString: FromString[T, E], printer: Printer[T]): Fragment[Option[T], E]

Returns a Fragment matching an element of type T. If the fragment is missing, it succeeds with None.

Returns a Fragment matching an element of type T. If the fragment is missing, it succeeds with None.

Implicits

Implicits

final implicit def asFragment[T](t: T)(implicit fromString: FromString[T, E], printer: Printer[T], classTag: ClassTag[T]): Fragment[Unit, E]