NewtypeF
The class of objects corresponding to parameterized newtypes. Users should implement an object that extends this class to create their own parameterized newtypes
object Sum extends NewtypeF
type Sum[A] = Sum.Type[A]
Attributes
- Source
- NewtypeModuleF.scala
- Graph
-
- Supertypes
-
trait instance.NewtypeFclass Objecttrait Matchableclass Any
- Known subtypes
Members list
Type members
Types
Attributes
- Source
- NewtypeModuleF.scala
Value members
Concrete methods
Converts an instance of a type parameterized on the newtype back to an instance of a type parameterized on the underlying type. For example, this could be used to convert a list of instances of the newtype back to a list of instances of the underlying type.
Converts an instance of a type parameterized on the newtype back to an instance of a type parameterized on the underlying type. For example, this could be used to convert a list of instances of the newtype back to a list of instances of the underlying type.
Attributes
- Source
- NewtypeModuleF.scala
Converts an instance of a type parameterized on the underlying type to an instance of a type parameterized on the newtype. For example, this could be used to convert a list of instances of the underlying type to a list of instances of the newtype.
Converts an instance of a type parameterized on the underlying type to an instance of a type parameterized on the newtype. For example, this could be used to convert a list of instances of the underlying type to a list of instances of the newtype.
Attributes
- Source
- NewtypeModuleF.scala
Inherited methods
Converts an instance of the underlying type to an instance of the newtype.
Converts an instance of the underlying type to an instance of the newtype.
Attributes
- Inherited from:
- NewtypeF
- Source
- NewtypeModuleF.scala
Allows pattern matching on newtype instances to convert them back to instances of the underlying type.
Allows pattern matching on newtype instances to convert them back to instances of the underlying type.
Attributes
- Inherited from:
- NewtypeF
- Source
- NewtypeModuleF.scala
Converts an instance of the newtype back to an instance of the underlying type.
Converts an instance of the newtype back to an instance of the underlying type.
Attributes
- Inherited from:
- NewtypeF
- Source
- NewtypeModuleF.scala
Converts an instance of the underlying type to an instance of the newtype.
Converts an instance of the underlying type to an instance of the newtype.
Attributes
- Inherited from:
- NewtypeF
- Source
- NewtypeModuleF.scala
Concrete fields
Attributes
- Source
- NewtypeModuleF.scala