object
Builders
Type Members
-
class
Builder[M[_]] extends AnyRef
-
class
BuilderOps[M[_], A] extends AnyRef
-
trait
CanBuild[M[_]] extends AnyRef
-
class
Result[+A] extends AnyRef
-
case class
~[+A, +B](_1: A, _2: B) extends Product with Serializable
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
implicit
def
toBuilderOps[M[_], A](a: M[A])(implicit fcb: CanBuild[M]): BuilderOps[M, A]
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Generic support for builders that allow to combine container types with matching type classes into a final result.
The concrete use case for Laika is a concise and type-safe API for setting up directives or text roles. For these APIs and sample code see laika.parse.rst.Directives and laika.parse.rst.TextRoles.
This implementation is based on a concept outlined by Sadek Drobi in this gist: https://gist.github.com/sadache/3646092. The code used here is only a simplified subset of the demonstrated functionality.