Writer

upickle.core.Types.Writer
See theWriter companion object
trait Writer[T]

Represents the ability to write a value of type T.

Generally nothing more than a way of applying the T to a Visitor, along with some utility methods

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ObjectWriter[T]
trait ReadWriter[T]
class Delegate[T]
trait TaggedReadWriter[T]
class Leaf[T]
class Node[T]
trait TaggedWriter[T]
class Leaf[T]
class Node[T]
class MapWriter[U, T]
class MapWriterNulls[U, T]
Show all

Members list

Value members

Abstract methods

def write0[V](out: Visitor[_, V], v: T): V

Concrete methods

def comap[U](f: U => T): MapWriter[U, T]
def comapNulls[U](f: U => T): MapWriterNulls[U, T]
def isJsonDictKey: Boolean

Whether or not the type being written can be used as a key in a JSON dictionary. Opt-in, and only applicable to writers that write primitive types like strings, booleans, numbers, etc..

Whether or not the type being written can be used as a key in a JSON dictionary. Opt-in, and only applicable to writers that write primitive types like strings, booleans, numbers, etc..

Attributes

def narrow[K]: Writer[K]
def transform[V](v: T, out: Visitor[_, V]): V
def write[V](out: Visitor[_, V], v: T): V