Bounds

io.github.iltotore.iron.Bounds
See theBounds companion object
trait Bounds[A, C]

A way to shift out-of-bounds A values constrained with C constraint.

Type parameters

A

the base type

C

the constraint type

Attributes

Companion
object
Source
Bounds.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def shift(value: A): IronType[A, C]

Shift value if out of bounds.

Shift value if out of bounds.

Value parameters

value

the value to eventually shift

Attributes

Returns

the passed value as is or shifted if necessary

Source
Bounds.scala