Newt.Unwrap protocol (Newt v10.0.0)

Copy Markdown View Source

A protocol for unwrapping values from NewTypes.

Summary

Types

t()

All the types that implement this protocol.

Functions

Unwraps a value from a NewType.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

unwrap(data)

@spec unwrap(any()) :: any()

Unwraps a value from a NewType.