KeyOf

org.sigilaris.core.application.state.StateTypes$package.KeyOf
object KeyOf

Attributes

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

Members list

Value members

Concrete methods

inline def apply[Brand, A](a: A): KeyOf[Brand, A]

Create a branded key from an unbranded value.

Create a branded key from an unbranded value.

Value parameters

a

the unbranded key value

Attributes

Returns

the branded key

Source
StateTypes.scala
inline def unwrap[Brand, A](branded: KeyOf[Brand, A]): A

Extract the unbranded value from a branded key.

Extract the unbranded value from a branded key.

Value parameters

branded

the branded key

Attributes

Returns

the unbranded value

Source
StateTypes.scala