This adds `FromIterator` impls for `Line` and `Text` that allow creating
`Line` and `Text` instances from iterators of `Span` and `Line`
instances, respectively.
let line = Line::from_iter(vec!["Hello".blue(), " world!".green()]);
let line: Line = iter::once("Hello".blue())
.chain(iter::once(" world!".green()))
.collect();
let text = Text::from_iter(vec!["The first line", "The second line"]);
let text: Text = iter::once("The first line")
.chain(iter::once("The second line"))
.collect();
Introduces scroll padding, which allows the api user to request that a certain number of ListItems be kept visible above and below the currently selected item while scrolling.
b5bdde0(text) Add FromIterator impls for Line and Text (#967)
This adds `FromIterator` impls for `Line` and `Text` that allow creating
`Line` and `Text` instances from iterators of `Span` and `Line`
instances, respectively.
</code></pre>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/ratatui-org/ratatui/commit/541f0f99538762a07d68a71b2989ecc6ff6f71ef"><code>541f0f9</code></a> perf(cell): use const CompactString::new_inline (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/979">#979</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/88bfb5a43027cf3410ad560772c5bfdbaa3d58b7"><code>88bfb5a</code></a> docs(text): update Text and Line docs (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/969">#969</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/c4ce7e8ff6f00875e1ead5b68052f0db737bd44d"><code>c4ce7e8</code></a> build: enable more satisfied lints (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/974">#974</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/3be189e3c6ebd418d13138ff32bc4a749dc840cf"><code>3be189e</code></a> refactor: clippy::thread_local_initializer_can_be_made_const (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/974">#974</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/5c4efacd1d70bb295d90ffaa73853dc206c187fb"><code>5c4efac</code></a> refactor: clippy::map_err_ignore (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/974">#974</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/bbb6d65e063df9a74ab6487b2216183c1fdd7230"><code>bbb6d65</code></a> refactor: clippy::else_if_without_else (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/974">#974</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/fdb14dc7cd69788e2ed20709e767f7631b11ffa2"><code>fdb14dc</code></a> refactor: clippy::redundant_type_annotations (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/974">#974</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/9b3b23ac14518a1ef23065d4a5da0fb047b18213"><code>9b3b23a</code></a> refactor: remove literal suffix (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/974">#974</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/58b6e0be0f4db3d90005e130e4b84cd865179785"><code>58b6e0b</code></a> refactor: clippy::should_panic_without_expect (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/974">#974</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/6e6ba27a122560bcf47b0efd20b7095f1bfd8714"><code>6e6ba27</code></a> build(lint): warn on pedantic and allow the rest (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/974">#974</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/ratatui-org/ratatui/compare/v0.26.0-alpha.1...v0.27.0-alpha.0">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ratatui&package-manager=cargo&previous-version=0.26.0-alpha.1&new-version=0.27.0-alpha.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps ratatui from 0.26.0-alpha.1 to 0.27.0-alpha.0.
Release notes
Sourced from ratatui's releases.