rtb-tui 0.6.4

Reusable TUI widgets: forms, wizards, prompts, tables. Part of the phpboyscout Rust toolkit.
Documentation
---
title: Reference
description: Every public item in rtb-tui — signatures, defaults, panics and error variants.
tags: [reference]
---

# Reference

Exact behaviour of every public item in `rtb-tui`, with the defaults and
failure modes spelled out. If you want to know what something *does*,
this is the tier. If you want to know *why* it does that, read
[Explanation](../explanation/index.md).

## What the crate exports

Everything public comes out of the crate root. There are no public
submodules.

```rust
pub use error::{RenderError, WizardError};
pub use render::{render_json, render_table};
pub use spinner::Spinner;
pub use wizard::{StepOutcome, Wizard, WizardBuilder, WizardStep};
pub use inquire::InquireError;
```

| Item | Kind | Page |
|---|---|---|
| `Wizard<S>`, `WizardBuilder<S>`, `WizardStep<S>`, `StepOutcome` | struct / trait / enum | [Wizard]01-wizard.md |
| `render_table`, `render_json` | functions | [Render helpers]02-render-helpers.md |
| `Spinner` | struct | [Spinner]03-spinner.md |
| `WizardError`, `RenderError` | error enums | [Errors]04-errors.md |
| `InquireError` | re-export of `inquire::InquireError` | [Wizard]01-wizard.md#inquireerror-re-export |

## Where the generated API docs are

This tier documents behaviour — defaults, panics, what happens when an
input is wrong. The generated signature-by-signature API listing is on
docs.rs and is built from the same source:

- <https://docs.rs/rtb-tui>

Where the two disagree, this tier is the one that has been checked
against the code; the [Known documentation defects](05-crate.md#known-documentation-defects)
section lists the specific places the rustdoc comments are wrong.

## Crate-level facts

Version, MSRV, Cargo features, dependency set and lint policy are on
[Crate metadata](05-crate.md).