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

Deprecated 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 *.

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

Attributes

Deprecated
[Since version 3.3]
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 *.

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

Attributes

Deprecated
[Since version 3.3]
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 *.

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

Attributes

Deprecated
[Since version 3.3]
Source
caps.scala