TransparentWrapping

made.TransparentWrapping
See theTransparentWrapping companion object
trait TransparentWrapping[R, T]

Bidirectional conversion between a transparent wrapper type T and its single wrapped field type R.

Used by Made.Transparent to implement wrap and unwrap. Derived at compile time via TransparentWrapping.derived[R, T] for single-field case classes annotated with @transparent.

Type parameters

R

the wrapped field type

T

the transparent wrapper type

Attributes

See also
Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def unwrap(t: T): R

Extracts the field value from a transparent wrapper instance.

Extracts the field value from a transparent wrapper instance.

Attributes

def wrap(r: R): T

Wraps a value of the field type into the transparent wrapper type.

Wraps a value of the field type into the transparent wrapper type.

Attributes