Frame

sealed class Frame<out T>(source)

Inheritors

Types

Link copied to clipboard
data object End : Frame<Nothing>
Link copied to clipboard
data object Start : Frame<Nothing>
Link copied to clipboard
class State<out T>(val state: T) : Frame<T>

Functions

Link copied to clipboard
operator fun <T : Comparable<T>> Frame<T>.compareTo(other: Frame<T>): Int
Link copied to clipboard
fun <T, R> Frame<T>.map(transform: (T) -> R): Frame<R>
Link copied to clipboard
fun <T, R : T> Frame<R>.toState(start: T = when { sceneScope.states.isNotEmpty() -> sceneScope.states.first() else -> error("implicit conversion to state requires non-empty states") }, end: T = when { sceneScope.states.isNotEmpty() -> sceneScope.states.last() else -> error("implicit conversion to state requires non-empty states") }): T

fun <T> Frame<T>.toState(start: T, end: T): T

Converts the Frame of type T to just a value of type T; where start is the default representation for Frame.Start, and end is the default representation for Frame.End.