# Unicode.Rune

> Representation of a Unicode character as a code point.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public struct Unicode.Rune
```

## Fields

| Value                                                                            | Description     |
| -------------------------------------------------------------------------------- | --------------- |
| [value](/engine/6000.7/script-reference/unity/collections/unicode/rune/value.md) | The code point. |

## Constructors

| Constructor                                                                                  | Description                                  |
| -------------------------------------------------------------------------------------------- | -------------------------------------------- |
| [Rune(System.Int32)](/engine/6000.7/script-reference/unity/collections/unicode/rune/ctor.md) | Initializes and returns an instance of Rune. |

## Methods

| Method                                                                                                   | Description                                                          |
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| [Equals](/engine/6000.7/script-reference/unity/collections/unicode/rune/equals.md)                       | Returns true if the value stored in this Rune is equal to an object. |
| [GetHashCode](/engine/6000.7/script-reference/unity/collections/unicode/rune/gethashcode.md)             | A hash used for comparisons.                                         |
| [LengthInUtf8Bytes](/engine/6000.7/script-reference/unity/collections/unicode/rune/lengthinutf8bytes.md) | Returns the number of bytes required to encode this rune as UTF-8.   |

## Static Methods

| Method                                                                               | Description                                            |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------ |
| [IsDigit](/engine/6000.7/script-reference/unity/collections/unicode/rune/isdigit.md) | Returns true if a rune is a numerical digit character. |

## Operators

| Operator                                                                                       | Description                                 |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------- |
| [operator ==](/engine/6000.7/script-reference/unity/collections/unicode/rune/op-equality.md)   | Evaluates if one is equal to the other.     |
| [Rune](/engine/6000.7/script-reference/unity/collections/unicode/rune/op-implicit.md)          | Returns a rune.                             |
| [operator !=](/engine/6000.7/script-reference/unity/collections/unicode/rune/op-inequality.md) | Evaluates if one is not equal to the other. |
