unsafe

oxygen.schema.SchemaLike.unsafe
object unsafe

There are times when you only care about encoding or decoding, and not the other. This makes that possible. If you try to do the thing you explicitly decided not to implement, you will get a runtime exception.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
unsafe.type

Members list

Value members

Concrete methods

def contramap[B](ba: B => A)(using newTypeTag: TypeTag[B]): S[B]
def map[B](ab: A => B)(using newTypeTag: TypeTag[B]): S[B]
def mapAttempt[B](ab: A => B)(using newTypeTag: TypeTag[B]): S[B]
def mapAttemptObscure[B](ab: A => B)(using newTypeTag: TypeTag[B]): S[B]
def mapOption[B](ab: A => Option[B])(using newTypeTag: TypeTag[B]): S[B]
def mapOptionObscure[B](ab: A => Option[B])(using newTypeTag: TypeTag[B]): S[B]
def mapOrFail[B](ab: A => Either[String, B])(using newTypeTag: TypeTag[B]): S[B]