Unsafe

sealed trait Unsafe extends Serializable

A marker interface used to indicate that a method is side-effecting, partial, or potentially type unsafe, such that it might throw a ClassCastException if used improperly. This marker interface is useful for certain low-level ZIO methods, to differentiate them from the higher-level methods, which are always pure, total, and type-safe.

import Unsafe.unsafe

unsafe { ... }
Companion:
object
class Object
trait Matchable
class Any