_core

trait _core extends Able.Tag

Non buffer methods

This is the full list of Doc methods, with the exception of ones inherited from AnyRef.G.Buffer and scala.Product

Source
_core.scala
trait Able.Tag
class java.lang.Object
trait scala.Matchable
class Any
class Doc

Def

inline def +=[A](name: String, value: A)(using t: Any.Def.Tag[A]): Doc

Alias to add

Alias to add

Adds name and value pair to the buffer

Source
_core.scala
inline def +=(value: String): Doc

Alias to add

Alias to add

Adds value with empty name

Source
_core.scala
inline def +@=[A](p: Int, n: String, v: A)(using t: Any.Def.Tag[A]): Doc

Alias to addAt

Alias to addAt

Adds name and value at given position

Source
_core.scala
def add[A](name: String, value: A)(using t: Any.Def.Tag[A]): Unit

Add name/value

Add name/value

Adds name and value pair to the buffer

Source
_core.scala
def add[A](value: A)(using t: Any.Def.Tag[A]): Unit

Add value

Add value

Adds value with empty name

Source
_core.scala
def addAt[A](pos: Int, name: String, value: A)(using t: Any.Def.Tag[A]): Unit

Add name/value at position

Add name/value at position

Adds name and value at given position

Source
_core.scala
var id: String

Instance id

Instance id

Id used to identify the instance

It usually includes class name and hash code

Source
_core.scala
def nameStream: Stream[String]

Stream of names

Stream of names

Source
_core.scala
def pairStream(sep: String): Stream[String]

Stream of name/value pairs

Stream of name/value pairs

Source
_core.scala
def tag: String

Generates tag description

Generates tag description

Tag contains a single line Doc representation

Source
_core.scala
def text: String

Generates text description

Generates text description

Text contains multi-line Doc representation

Source
_core.scala
def update[A](name: String, v: A)(using t: Any.Def.Tag[A]): Unit

Update value by name

Update value by name

"update" can be called with simplified notation

val d: Doc = Doc("test") += ("foo", "bar1")
d("foo") = "bar2"
Source
_core.scala
def update[A](pos: Int, v: A)(using t: Any.Def.Tag[A]): Unit

Update value by position

Update value by position

"update" can be called with simplified notation

val d: Doc = Doc("test") += ("foo", "bar1")
d(0) = "bar2"
Source
_core.scala
def valueStream: Stream[String]

Stream of values

Stream of values

Source
_core.scala