Syntax helper for zero-argument molecule emitters.
This trait has a single method, getUnit, which returns a value of type T, but the only instance will exist if T is Unit and will return ().
A
Type of the molecule value. If this is Unit, we will have an implicit value of type TypeIsUnit[A], which will define getUnit to return ().
Syntax helper for zero-argument molecule emitters. This trait has a single method,
getUnit
, which returns a value of typeT
, but the only instance will exist ifT
isUnit
and will return()
.Type of the molecule value. If this is
Unit
, we will have an implicit value of typeTypeIsUnit[A]
, which will definegetUnit
to return()
.