Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.caps/unsafe

unsafe

scala.caps.unsafe
objectunsafe

Attributes

Experimental
true
Source
package.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
unsafe.type

Members list

Type members

Classlikes

Marks the constructor parameter as untracked. The capture set of this parameter will not be included in the capture set of the constructed object.

Marks the constructor parameter as untracked. The capture set of this parameter will not be included in the capture set of the constructed object.

Attributes

Note

This should go into annotations. For now it is here, so that we can experiment with it quickly between minor releases

Source
package.scala
Supertypes
classObject
traitMatchable
classAny

Value members

Concrete methods

defunsafeAssumeSeparate(op:Any): op.type

A wrapper around code for which separation checks are suppressed.

A wrapper around code for which separation checks are suppressed.

Attributes

Source
package.scala

An unsafe variant of erasedValue that can be used as an escape hatch. Unlike the user-accessible compiletime.erasedValue, this version is assumed to be a pure expression, hence capability safe. But there is no proof of realizability, hence it is unsafe.

An unsafe variant of erasedValue that can be used as an escape hatch. Unlike the user-accessible compiletime.erasedValue, this version is assumed to be a pure expression, hence capability safe. But there is no proof of realizability, hence it is unsafe.

Attributes

Source
package.scala

Extensions

Extensions

extension[T](x:T)

A specific cast operation to remove a capture set. If argument is of typeT^C, assume it is of typeT 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 typeT^C, assume it is of typeT instead. Calls to this method are treated specially by the capture checker.

Attributes

Source
package.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp