caps
Attributes
- Experimental
- true
- Source
- caps.scala
- Graph
-
- Supertypes
- Self type
-
caps.type
Members list
Type members
Classlikes
Carrier trait for capture set type parameters
Attributes
- Source
- caps.scala
- Supertypes
-
class Any
- Known subtypes
A type constraint expressing that the capture set C
needs to contain the capability R
A type constraint expressing that the capture set C
needs to contain the capability R
Attributes
- Source
- caps.scala
- Supertypes
Attributes
- Source
- caps.scala
- Supertypes
Attributes
- Source
- caps.scala
- Supertypes
- Known subtypes
-
class CanThrow[E]
An annotations on parameters and update methods. On a parameter it states that any capabilties passed in the argument are no longer available afterwards, unless they are of class SharableCapabilitty
. On an update method, it states that the this
of the enclosing class is consumed, which means that any capabilities of the method prefix are no longer available afterwards.
An annotations on parameters and update methods. On a parameter it states that any capabilties passed in the argument are no longer available afterwards, unless they are of class SharableCapabilitty
. On an update method, it states that the this
of the enclosing class is consumed, which means that any capabilities of the method prefix are no longer available afterwards.
Attributes
- Source
- caps.scala
- Supertypes
An internal annotation placed on a refinement created by capture checking. Refinements with this annotation unconditionally override any info from the parent type, so no intersection needs to be formed. This could be useful for tracked parameters as well.
An internal annotation placed on a refinement created by capture checking. Refinements with this annotation unconditionally override any info from the parent type, so no intersection needs to be formed. This could be useful for tracked parameters as well.
Attributes
- Source
- caps.scala
- Supertypes
An annotation used internally for root capability wrappers of cap
that represent either Fresh or Result capabilities. A capability is encoded as caps.cap @rootCapability(...)
where rootCapability(...)
is a special kind of annotation of type root.Annot
that contains either a hidden set for Fresh instances or a method type binder for Result instances.
An annotation used internally for root capability wrappers of cap
that represent either Fresh or Result capabilities. A capability is encoded as caps.cap @rootCapability(...)
where rootCapability(...)
is a special kind of annotation of type root.Annot
that contains either a hidden set for Fresh instances or a method type binder for Result instances.
Attributes
- Source
- caps.scala
- Supertypes
Attributes
- Source
- caps.scala
- Supertypes
- Self type
-
unsafe.type
This should go into annotations. For now it is here, so that we can experiment with it quickly between minor releases
This should go into annotations. For now it is here, so that we can experiment with it quickly between minor releases
Attributes
- Source
- caps.scala
- Supertypes
An annotation on parameters x
stating that the method's body makes use of the reach capability x*
. Consequently, when calling the method we need to charge the deep capture set of the actual argiment to the environment.
An annotation on parameters x
stating that the method's body makes use of the reach capability x*
. Consequently, when calling the method we need to charge the deep capture set of the actual argiment to the environment.
Note: This should go into annotations. For now it is here, so that we can experiment with it quickly between minor releases
Attributes
- Source
- caps.scala
- Supertypes
Deprecated classlikes
A trait that used to allow expressing existential types. Replaced by root.Result instances.
A trait that used to allow expressing existential types. Replaced by root.Result instances.
Attributes
- Deprecated
- true
- Source
- caps.scala
- Supertypes
Deprecated types
Attributes
- Deprecated
- Use `Capability` instead
- Source
- caps.scala
Value members
Concrete methods
A wrapper indicating a type variable in a capture argument list of a
Concrete fields
The universal capture reference
Deprecated fields
The universal capture reference (deprecated)
The universal capture reference (deprecated)
Attributes
- Deprecated
- Use `cap` instead
- Source
- caps.scala
Givens
Givens
The only implementation of Contains
. The constraint that {R} <: C
is added separately by the capture checker.
The only implementation of Contains
. The constraint that {R} <: C
is added separately by the capture checker.
Attributes
- Source
- caps.scala
Extensions
Extensions
Reach capabilities x* which appear as terms in @retains annotations are encoded as caps.reachCapability(x)
. When converted to CaptureRef types in capture sets they are represented as x.type @annotation.internal.reachCapability
.
Reach capabilities x* which appear as terms in @retains annotations are encoded as caps.reachCapability(x)
. When converted to CaptureRef types in capture sets they are represented as x.type @annotation.internal.reachCapability
.
Attributes
- Source
- caps.scala
Read-only capabilities x.rd which appear as terms in @retains annotations are encoded as caps.readOnlyCapability(x)
. When converted to CaptureRef types in capture sets they are represented as x.type @annotation.internal.readOnlyCapability
.
Read-only capabilities x.rd which appear as terms in @retains annotations are encoded as caps.readOnlyCapability(x)
. When converted to CaptureRef types in capture sets they are represented as x.type @annotation.internal.readOnlyCapability
.
Attributes
- Source
- caps.scala