zio

io.github.iltotore.iron.zio
object zio

Attributes

Source
zio.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
zio.type

Members list

Givens

Givens

Attributes

Source
zio.scala

Inherited givens

inline given given_Debug_T[T](using mirror: Mirror[T], ev: Debug[IronType]): Debug[T]

Attributes

Inherited from:
RefinedTypeOpsZio (hidden)
Source
zio.scala
inline given given_Equal_T[T](using mirror: Mirror[T], ev: Equal[IronType]): Equal[T]

Attributes

Inherited from:
RefinedTypeOpsZio (hidden)
Source
zio.scala
inline given given_Hash_T[T](using mirror: Mirror[T], ev: Hash[IronType]): Hash[T]

Attributes

Inherited from:
RefinedTypeOpsZioLowPriority (hidden)
Source
zio.scala
inline given given_Ord_T[T](using mirror: Mirror[T], ev: Ord[IronType]): Ord[T]

Attributes

Inherited from:
RefinedTypeOpsZio (hidden)
Source
zio.scala

Extensions

Extensions

extension [A, C, T](ops: RefinedTypeOps[A, C, T])
def validation(value: A): Validation[String, T]

Refine the given value applicatively at runtime, resulting in a Validation.

Refine the given value applicatively at runtime, resulting in a Validation.

Value parameters

constraint

the constraint to test with the value to refine.

Attributes

Returns

a Valid containing this value as T or an Validation.Failure containing a NonEmptyChunk of error messages.

Source
zio.scala
extension [A](value: A)
inline def refineValidation[C](using inline constraint: Constraint[A, C]): Validation[String, IronType[A, C]]

Refine the given value applicatively at runtime, resulting in a Validation.

Refine the given value applicatively at runtime, resulting in a Validation.

Value parameters

constraint

the constraint to test with the value to refine.

Attributes

Returns

a Valid containing this value as IronType or an Validation.Failure containing a NonEmptyChunk of error messages.

Source
zio.scala
extension [A, C1](value: IronType[A, C1])
inline def refineFurtherValidation[C2](using inline constraint: Constraint[A, C2]): Validation[String, IronType[A, C1 & C2]]

Refine the given value again applicatively at runtime, resulting in a Validation.

Refine the given value again applicatively at runtime, resulting in a Validation.

Value parameters

constraint

the new constraint to test.

Attributes

Returns

a Valid containing this value as IronType or an Validation.Failure containing a NonEmptyChunk of error messages.

Source
zio.scala