Class specialized.specialized
Source code


final class specialized(group: SpecializedGroup) extends StaticAnnotation


Annotate type parameters on which code should be automatically specialized. For example:
class MyList[@specialized T] ...
Type T can be specialized on a subset of the primitive types by specifying a list of primitive types to specialize at:
class MyList[@specialized(Int, Double, Boolean) T] ..

Supertypes

trait StaticAnnotation

class Annotation

class Object

trait Matchable

class Any



Constructors

Source
def this(types: Specializable*)



Source
def this()




    
{'path': 'public/docs/scala~3.2/scala/specialized.html', 'source': 'DevDocs.IO'}