trait Box[a: Type]
A trait for primitive types that can be boxed and unboxed.
type Boxed: Type
instance Box[Bool]
instance Box[Char]
instance Box[Float32]
instance Box[Float64]
instance Box[Int8]
instance Box[Int16]
instance Box[Int32]
instance Box[Int64]
def box(x: a): Boxed[a] with Box[a]
Returns the boxed representation of the given x.
x
def unbox(x: Boxed[a]): a with Box[a]
Returns the unboxed representation of the given x.