zio.prelude.data

Members list

Type members

Classlikes

sealed trait Optional[+A]

Custom option type to be used for wrapping external data models where most of the fields are defined to be optional.

Custom option type to be used for wrapping external data models where most of the fields are defined to be optional.

Instances of Optional are either Optional.Present or Optional.Absent.

The only difference between this type and scala.Option is that there is an implicit conversion defined from A`` toOptional[A], and fromOption[A]`` to Optional[A].

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Absent
class Present[A]
Self type
object Optional

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Optional.type