Utility trait for new types' companion object.
Type parameters
- A
-
the base type of the new type
- C
-
the constraint type of the new type
- T
-
the new type (equivalent to
A :| C
ifT
is a transparent alias)
Attributes
- Companion
- object
- Source
- RefinedTypeOps.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Implicitly refine at compile-time the given value.
Implicitly refine at compile-time the given value.
Value parameters
- value
-
the value to refine.
Attributes
- Note
-
This method ensures that the value satisfies the constraint. If it doesn't or isn't evaluable at compile-time, the compilation is aborted.
- Source
- RefinedTypeOps.scala
Refine the given value(s) at runtime.
Refine the given value(s) at runtime.
Attributes
- Returns
-
the given values as T.
- Throws
-
IllegalArgumentException
if the constraint is not satisfied.
- See also
-
applyUnsafe.
- Source
- RefinedTypeOps.scala
Refine the given value, assuming the constraint holds.
Refine the given value, assuming the constraint holds.
Attributes
- Returns
-
a constrained value, without performing constraint checks.
- See also
- Source
- RefinedTypeOps.scala
Refine the given value(s), assuming the constraint holds.
Refine the given value(s), assuming the constraint holds.
Attributes
- Returns
-
a wrapper of constrained values, without performing constraint checks.
- See also
-
assume.
- Source
- RefinedTypeOps.scala
Refine the given value at runtime, resulting in an Either.
Refine the given value at runtime, resulting in an Either.
Attributes
- Returns
-
a Right containing this value as T or a Left containing the constraint message.
- See also
-
option, applyUnsafe.
- Source
- RefinedTypeOps.scala
Refine the given value(s) at runtime, resulting in an Either.
Refine the given value(s) at runtime, resulting in an Either.
Attributes
- Returns
-
a Right containing the given values as T or a Left containing the constraint message.
- See also
- Source
- RefinedTypeOps.scala
Refine the given value at runtime, resulting in an Option.
Refine the given value at runtime, resulting in an Option.
Attributes
- Returns
-
an Option containing this value as T or None.
- See also
-
either, applyUnsafe.
- Source
- RefinedTypeOps.scala
Refine the given value at runtime, resulting in an Option.
Refine the given value at runtime, resulting in an Option.
Attributes
- Returns
-
an Option containing the refined values as
F[T]
or None. - See also
- Source
- RefinedTypeOps.scala
The runtime constraint of the underlying IronType. Can be used in non-inline methods and to improve runtime performances.
The runtime constraint of the underlying IronType. Can be used in non-inline methods and to improve runtime performances.
Attributes
- Source
- RefinedTypeOps.scala
Attributes
- Source
- RefinedTypeOps.scala
Givens
Givens
Attributes
- Source
- RefinedTypeOps.scala
Attributes
- Source
- RefinedTypeOps.scala
Attributes
- Source
- RefinedTypeOps.scala
Extensions
Extensions
Attributes
- Source
- RefinedTypeOps.scala