scalus.prelude
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Validator, parametrized by Data. Keep
Validator, parametrized by Data. Keep
Needed for compability with solutions which use existing uplc scripts and apply Data as parameter on UPLC level.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
EqCompanion.type
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
OrdCompanion.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Deprecated classlikes
Attributes
- Companion
- object
- Deprecated
- true
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
???
can be used for marking methods that remain to be implemented.
???
can be used for marking methods that remain to be implemented.
Attributes
- Throws
-
NotImplementedError
when
???
is invoked.
Tests an expression, throwing an IllegalArgumentException
if false.
Tests an expression, throwing an IllegalArgumentException
if false.
Value parameters
- requirement
-
the expression to test
Attributes
- Note
-
we do not use scala.Predef.require because it's not an
inline
method and it's not expanded before Scalus compiler plugin phase. - Example
-
require(value > 1000, "Not enough")
Givens
Givens
Extensions
Extensions
Trace the expression only if it evaluates to false
. This is useful to trace an entire evaluation path that led to a final expression being false
.
Trace the expression only if it evaluates to false
. This is useful to trace an entire evaluation path that led to a final expression being false
.
Attributes
- Returns
-
the value of the expression
- Example
-
mustBeAfter.? && mustSpendToken.?
will trace "mustSpendToken ? False" if
mustBeAfter
istrue
andmustSpendToken
isfalse
.