Unit

scala.scalanative.nir.Type.Unit
case object Unit extends RefKind

The unit type.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class RefKind
class Type
class Object
trait Matchable
class Any
Show all
Self type
Unit.type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Inherited and Abstract types

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Inherited methods

def =?=(other: Type): Boolean

Attributes

Inherited from:
Type
final def className: Top

The identifier of the class corresponding to this type.

The identifier of the class corresponding to this type.

Attributes

Inherited from:
RefKind
final def elemty(path: Seq[Val]): Type

Attributes

Inherited from:
Type
def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton

Attributes

Inherited from:
Type
final def isExact: Boolean

true iff the referenced type is exactly the type denoted by this.

true iff the referenced type is exactly the type denoted by this.

Given an instance r of RefKind denoting a reference to some time T, r.isExact holds iff the referenced type is exactly T and not a subtype thereof. The optimizer may be able to compute the exact variant of an arbitrary reference after it has replaced a virtual call.

Attributes

Inherited from:
RefKind
final def isNullable: Boolean

true iff instances of this type are nullable.

true iff instances of this type are nullable.

Attributes

Inherited from:
RefKind
final def mangle: String

The mangled representation of this.

The mangled representation of this.

Attributes

Inherited from:
Type

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def show: String

A textual representation of this.

A textual representation of this.

Attributes

Inherited from:
Type