ProductOps

info.fingo.spata.Record.ProductOps
See theProductOps companion trait
object ProductOps extends ProductOps

Given instance to easily bring ProductOps extension in scope.

Attributes

Companion
trait
Graph
Supertypes
trait ProductOps
class Object
trait Matchable
class Any
Self type
ProductOps.type

Members list

Extensions

Inherited extensions

extension [P <: Product](product: P)

Converts scala.Product (e.g. case class) to Record.

Converts scala.Product (e.g. case class) to Record.

Type parameters

P

concrete type of product with given type class providing support for conversion

Value parameters

product

product to extend

Attributes

Returns

new record

See also

Record.from for more information.

Inherited from:
ProductOps
extension [T <: Tuple](tuple: T)

Converts scala.Tuple to Record. Althogh product conversion works for tuples too, this tuple-optimized version is more efficient.

Converts scala.Tuple to Record. Althogh product conversion works for tuples too, this tuple-optimized version is more efficient.

Type parameters

T

concrete type of tuple with given type class providing support for conversion

Value parameters

tuple

tuple to extend

Attributes

Returns

new record

See also

Record.from for more information.

Inherited from:
ProductOps