Success

scalus.uplc.eval.Result.Success
final case class Success(term: Term, budget: ExUnits, costs: Map[ExBudgetCategory, Seq[ExUnits]], logs: Seq[String])

Members list

Value members

Inherited methods

infix def alphaEq(that: Result): Boolean

Compare this Result with that for semantic equality.

Compare this Result with that for semantic equality.

For Success results this uses Term.alphaEq to compare the produced terms (so alpha-equivalent terms are considered equal), and also requires budgets, costs and logs to be equal.

For Failure results this compares the runtime exception classes and messages (stack traces are intentionally ignored), and also requires budgets, costs and logs to be equal.

Returns true only when both sides are the same variant (Success or Failure) and all compared components match as described above.

Value parameters

that

the other Result to compare against

Attributes

Returns

true if results are semantically equal (alpha-equivalence for terms)

Inherited from:
Result
def isFailure: Boolean

Attributes

Inherited from:
Result
def isSuccess: Boolean

Attributes

Inherited from:
Result
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Returns the Success result if this is a Success, otherwise throws NoSuchElementException.

Returns the Success result if this is a Success, otherwise throws NoSuchElementException.

Attributes

Inherited from:
Result
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Result -> Any
Inherited from:
Result