flix

0.54.0

Box

trait Box[a: Type]Source

A trait for primitive types that can be boxed and unboxed.

Associated Types

type Boxed: TypeSource

Instances

instance Box[Bool]Source
instance Box[Char]Source
instance Box[Float32]Source
instance Box[Float64]Source
instance Box[Int8]Source
instance Box[Int16]Source
instance Box[Int32]Source
instance Box[Int64]Source

Signatures

def box(x: a): Boxed[a] with Box[a] Source

Returns the boxed representation of the given x.

def unbox(x: Boxed[a]): a with Box[a] Source

Returns the unboxed representation of the given x.