ValueDiscard

trait ValueDiscard[T]

when customValueDiscard is on, value can be discarded only for types T for which CustomValueDiscard is enabled. And ValueDiscard.apply is called when value is discarded.

when customValueDiscard is on, value can be discarded only for types T for which CustomValueDiscard is enabled. And ValueDiscard.apply is called when value is discarded.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(value: T): Unit