# RelationQuantifier.encode(to:)

- **Module:** RelationQuantifier
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Page:** https://libtmux.org/reference/swift/relationquantifier-encode(to-)/

```
RelationQuantifier.encode(to:)(to: any Encoder) -> ()
```

Encodes this value into the given encoder, when the type's `RawValue` is `String`.

This function throws an error if any values are invalid for the given
encoder's format.

- Parameter encoder: The encoder to write data to.
