# API glossary

Source: https://libtmux.org/en/scala/latest/reference/glossary/

> Kinds, modifiers and package labels in the Scala API reference.

## Symbol kinds

Kinds identify declarations in the Scala API reference.

### module

A singleton object that groups Scala declarations.

The module badge represents object declarations here. Its members belong to that object; the label does not identify a separately installed artifact.

References: [Scala singleton objects](https://docs.scala-lang.org/tour/singleton-objects.html).

### class

A Scala class that defines instances, constructors and members.

Traits and case classes have their own declaration syntax; read the displayed signature for those distinctions.

References: [Scala classes](https://docs.scala-lang.org/tour/classes.html).

### enum

A Scala enum whose cases describe the alternatives of a type.

Cases can be singleton values or carry constructor parameters.

References: [Scala enums](https://docs.scala-lang.org/scala3/reference/enums/enums.html).

### function

A callable Scala declaration shown at package or object scope.

A def declaration is a method; a function value is a value that can be applied. The signature distinguishes them.

References: [Scala methods](https://docs.scala-lang.org/tour/basics.html#methods).

### method

A Scala method declared with def, with parameter lists and a result type.

An extension method adds callable syntax to a receiver without changing its type. The extension declaration identifies that receiver and any contextual requirements.

References: [Scala method declarations](https://docs.scala-lang.org/tour/basics.html#methods); [Scala extension methods](https://docs.scala-lang.org/scala3/reference/contextual/extension-methods.html).

### property

A Scala value or variable exposed as a member.

val prevents reassignment of its binding; var permits it. A val may still refer to a mutable object.

References: [Scala values](https://docs.scala-lang.org/tour/basics.html#values); [Scala variables](https://docs.scala-lang.org/tour/basics.html#variables).

### constant

A named Scala value exposed by the API.

Read its declaration for val, lazy val or a literal value; the badge alone does not promise compile-time evaluation.

References: [Scala values](https://docs.scala-lang.org/tour/basics.html#values).

### typealias

A Scala type name defined with type, including an opaque type alias.

An opaque alias hides its representation outside its defining scope while retaining that representation inside it.

References: [Scala opaque type aliases](https://docs.scala-lang.org/scala3/reference/other-new-features/opaques.html).

## Modifiers

Modifiers add information about calling, implementing, or accessing a declaration. Their precise effect follows the language and the signature.

### opaque

A Scala opaque type alias whose representation is visible in its defining scope and hidden outside it.

Its public bounds and provided operations define how callers can use the alias.

References: [Scala opaque type aliases](https://docs.scala-lang.org/scala3/reference/other-new-features/opaques.html).

### overload

Scala methods with the same name and different accepted parameter types or lists.

The call and its available context determine which signature applies.

References: [Scala overload resolution](https://docs.scala-lang.org/scala3/reference/changed-features/overload-resolution.html).

## Package context

Package labels identify where an API is supplied.

### package

The library artifact supplying this Scala API.

An artifact dependency and a Scala package used in imports are different names; use the displayed installation and import instructions.

References: [Scala packages and imports](https://docs.scala-lang.org/tour/packages-and-imports.html).
