YamlCodec

org.virtuslab.yaml.YamlCodec
See theYamlCodec companion object
trait YamlCodec[T] extends YamlDecoder[T], YamlEncoder[T]

A type class that provides both-way conversion between Node and T

Attributes

Companion
object
Source
YamlCodec.scala
Graph
Supertypes
trait YamlEncoder[T]
trait YamlDecoder[T]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def mapInvariant[T1](f: T => T1)(g: T1 => T): YamlCodec[T1]

Attributes

Source
YamlCodec.scala
def mapInvariantError[T1](f: T => Either[ConstructError, T1])(g: T1 => T): YamlCodec[T1]

Attributes

Source
YamlCodec.scala

Inherited methods

final def flatMap[T1](f: T => YamlDecoder[T1]): YamlDecoder[T1]

Attributes

Inherited from:
YamlDecoder
Source
YamlDecoder.scala
final def map[T1](f: T => T1): YamlDecoder[T1]

Attributes

Inherited from:
YamlDecoder
Source
YamlDecoder.scala
final def mapContra[T1](f: T1 => T): YamlEncoder[T1]

Attributes

Inherited from:
YamlEncoder
Source
YamlEncoder.scala
final def mapError[T1](f: T => Either[ConstructError, T1]): YamlDecoder[T1]

Attributes

Inherited from:
YamlDecoder
Source
YamlDecoder.scala
final def orElse[T1 >: T](that: => YamlDecoder[T1]): YamlDecoder[T1]

Attributes

Inherited from:
YamlDecoder
Source
YamlDecoder.scala
final def widen[T1 >: T]: YamlDecoder[T1]

Attributes

Inherited from:
YamlDecoder
Source
YamlDecoder.scala

Inherited and Abstract methods

def asNode(obj: T): Node

Attributes

Inherited from:
YamlEncoder
Source
YamlEncoder.scala
def construct(node: Node)(implicit settings: LoadSettings): Either[ConstructError, T]

Attributes

Inherited from:
YamlDecoder
Source
YamlDecoder.scala