DocumentRenderer

caliban.rendering.DocumentRenderer

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def renderTypeName(t: `__Type`): String

Inherited methods

def ++[A1 <: Document](that: Renderer[A1]): Renderer[A1]

Combines this renderer with another renderer sequentially. Semantically equivalent to this andThen that

Combines this renderer with another renderer sequentially. Semantically equivalent to this andThen that

Attributes

Inherited from:
Renderer
def contramap[B](f: B => Document): Renderer[B]

Contramaps the input of this renderer with the given function producing a renderer that now operates on type B

Contramaps the input of this renderer with the given function producing a renderer that now operates on type B

Attributes

Inherited from:
Renderer
def list[A1 <: Document](separator: Renderer[A1], omitFirst: Boolean): Renderer[List[A1]]

Returns a renderer that renders a list of A but where the separator is rendered by provided argument renderer. The second parameter determines whether to print the separator before the first element or not.

Returns a renderer that renders a list of A but where the separator is rendered by provided argument renderer. The second parameter determines whether to print the separator before the first element or not.

Attributes

Inherited from:
Renderer
def list: Renderer[List[A]]

Returns a renderer that renders a list of A where the underlying renderer is responsible for rendering the separator between each element.

Returns a renderer that renders a list of A where the underlying renderer is responsible for rendering the separator between each element.

Attributes

Inherited from:
Renderer
def optional: Renderer[Option[A]]

Returns an optional renderer that will only render the value if it is defined

Returns an optional renderer that will only render the value if it is defined

Attributes

Inherited from:
Renderer
def render(a: Document): String

Attributes

Inherited from:
Renderer
def renderCompact(a: Document): String

Attributes

Inherited from:
Renderer
def set[A1 <: Document](separator: Renderer[A1]): Renderer[Set[A1]]

Returns a renderer that renders a set of A but where the separator is rendered by provided argument renderer.

Returns a renderer that renders a set of A but where the separator is rendered by provided argument renderer.

Attributes

Inherited from:
Renderer
def when[A1 <: Document](pred: A1 => Boolean): Renderer[A1]

Returns a renderer that will only render when the provided predicate is true.

Returns a renderer that will only render when the provided predicate is true.

Attributes

Inherited from:
Renderer