unsafe

scala.caps.unsafe
object unsafe

Attributes

Source
caps.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
unsafe.type

Members list

Extensions

Extensions

extension [T, U](f: T => U)
def unsafeBoxFunArg: T => U

If argument is of type box cs T, converts to type cs T. This avoids the error that would be raised when unboxing cap.

If argument is of type box cs T, converts to type cs T. This avoids the error that would be raised when unboxing cap.

Attributes

Source
caps.scala
extension [T](x: T)

A specific cast operation to remove a capture set. If argument is of type T^C, assume it is of type T instead. Calls to this method are treated specially by the capture checker.

A specific cast operation to remove a capture set. If argument is of type T^C, assume it is of type T instead. Calls to this method are treated specially by the capture checker.

Attributes

Source
caps.scala
def unsafeBox: T

If argument is of type cs T, converts to type box cs T. This avoids the error that would be raised when boxing cap.

If argument is of type cs T, converts to type box cs T. This avoids the error that would be raised when boxing cap.

Attributes

Source
caps.scala
def unsafeUnbox: T

If argument is of type box cs T, converts to type cs T. This avoids the error that would be raised when unboxing cap.

If argument is of type box cs T, converts to type cs T. This avoids the error that would be raised when unboxing cap.

Attributes

Source
caps.scala