mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-06-01 23:45:28 +00:00
9 lines
317 B
Kotlin
9 lines
317 B
Kotlin
package dev.inmo.micro_utils.repos
|
|
|
|
interface MapperRepo<FromKey, FromValue, ToKey, ToValue> {
|
|
suspend fun FromKey.toOutKey() = this as ToKey
|
|
suspend fun FromValue.toOutValue() = this as ToValue
|
|
|
|
suspend fun ToKey.toInnerKey() = this as FromKey
|
|
suspend fun ToValue.toInnerValue() = this as FromValue
|
|
} |