mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 10:50:40 +00:00
Allow SelectView::with_all to accept StyledString (#385)
This commit is contained in:
parent
1404226c33
commit
ae7a0090ff
@ -343,7 +343,7 @@ impl<T: 'static> SelectView<T> {
|
||||
/// Chainable variant.
|
||||
pub fn with_all<S, I>(self, iter: I) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
S: Into<StyledString>,
|
||||
I: IntoIterator<Item = (S, T)>,
|
||||
{
|
||||
self.with(|s| s.add_all(iter))
|
||||
|
Loading…
Reference in New Issue
Block a user