pprint
Contains a convenient default pre-configured PPrinter.
Hard-coded and inflexible, but feel free to instantiate your own PPrint if you want to customize it.
Attributes
Members list
Type members
Classlikes
Value parameters
- additionalHandlers
-
Provide this to override how certain types are pretty-printed at runtime
- colorApplyPrefix
-
What color to assign to
Foo
inFoo(bar, baz)
- colorLiteral
-
What color to assign to literals like
"lol"
or 31337 - defaultHeight
-
How tall to allow the pretty-printed output to become before truncated it with a
...
- defaultIndent
-
How many spaces to indent each nested Tree.Apply by
- defaultWidth
-
How wide to allow a pretty-printed value to become before wrapping
Attributes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ProductSupport.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
The intermediate return type of the pretty-print system: provides an iterator which produces the actual string output, as well as metadata around that output that is only available after the iterator is exhausted
The intermediate return type of the pretty-print system: provides an iterator which produces the actual string output, as well as metadata around that output that is only available after the iterator is exhausted
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StringPrefix.type
Summoning an implicit TPrint[T]
provides a pretty-printed string representation of the type T
, much better than is provided by the default Type#toString
. In particular
Summoning an implicit TPrint[T]
provides a pretty-printed string representation of the type T
, much better than is provided by the default Type#toString
. In particular
- More forms are properly supported and printed
- Prefixed Types are printed un-qualified, according to what's currently in scope
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object BlackWhite.typeobject Colors.type
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TPrintColors.type
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TPrintLowPri.type
A lazy AST representing pretty-printable text. Models foo(a, b)
foo op bar
, and terminals foo
in both lazy and eager forms
Wraps an input iterator of colored fansi.Strs, and produces the same fansi.Strs but truncated once the wrapped-at-width text reaches beyond a certain height
Wraps an input iterator of colored fansi.Strs, and produces the same fansi.Strs but truncated once the wrapped-at-width text reaches beyond a certain height
Attributes
- Supertypes
-
trait Iterator[Str]trait IterableOnceOps[Str, Iterator, Iterator[Str]]trait IterableOnce[Str]class Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Inherited methods
Converts an Any into a large colored fansi.Str
Logs a given value to stdout with some metadata to identify where the log message came from. Hard-coded and not very flexible, but you can easily implement your own log method if you want to customize it further.
Logs a given value to stdout with some metadata to identify where the log message came from. Hard-coded and not very flexible, but you can easily implement your own log method if you want to customize it further.
Attributes
- Inherited from:
- PPrinter
Converts an Any into a large colored fansi.Str
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Converts an Any into an iterator of colored chunks, wrapped at a certain width and truncated at a certain height
Converts an Any into an iterator of colored chunks, wrapped at a certain width and truncated at a certain height
Attributes
- Inherited from:
- PPrinter
Inherited fields
Attributes
- Inherited from:
- Walker